def __init__(self, **kwargs): BaseFakeSourcesTask.__init__(self, **kwargs) print("RNG seed:", self.config.seed) self.rng = afwMath.Random(seed=self.config.seed) self.npRand = np.random.RandomState(self.config.seed) try: self.starData = fits.open(self.config.starList)[1].data except Exception: raise
def __init__(self, **kwargs): BaseFakeSourcesTask.__init__(self, **kwargs) print("RNG seed:", self.config.seed) self.rng = lsst.afw.math.Random(seed=self.config.seed) self.npRand = np.random.RandomState(self.config.seed)
def __init__(self, **kwargs): BaseFakeSourcesTask.__init__(self, **kwargs)