def load(self, filename, filter): """ Load a PSF KL decomposition from a psField file. See the docs for the main class PSFKL. """ if filename is not None: if filter is None: raise ValueError("Send filename AND filter") if isinstance(filter, (str, unicode)): filternum = sdsspy.util.FILTERNUM[filter] else: filternum = filter if self.verbose: print >> stderr, "Reading PSF KL:", filename self.basis = _py_atlas.py_read_kl_basis(filename, filternum + 1) self.filename = filename self.filter = filter self.filternum = filternum else: self.filename = None self.filter = None self.filternum = None self.basis = None
def py_read_kl_basis(*args): return _py_atlas.py_read_kl_basis(*args)