Replaced to_map() method with psf_kernel_map() property
@@ -131,6 +131,10 @@ class PSFKernel(object):
def __init__(self, psf_kernel_map):
self._psf_kernel_map = psf_kernel_map
+ @property
+ def psf_kernel_map(self):
+ return self._psf_kernel_map
+
@classmethod
def read(cls, *args, **kwargs):
"""Read kernel Map from file."""
@@ -215,9 +219,6 @@ class PSFKernel(object):
return cls(table_psf_to_kernel_map(table_psf, geom))
- def to_map(self):
- return self._psf_kernel_map
-
def write(self, *args, **kwargs):
psf_kernel_map = self.to_map()
psf_kernel_map.write(*args, **kwargs)
