def __init__(self, name, xlo, xhi, x1, x2, y, shape=None, staterror=None, syserror=None): self._lo = xlo self._hi = xhi self._x1 = x1 self._x2 = x2 BaseData.__init__(self)
def __init__(self, name, x0lo, x1lo, x2lo, x0hi, x1hi, x2hi, y, shape=None, staterror=None, syserror=None): self._x0lo = x0lo self._x1lo = x1lo self._x2lo = x2lo self._x0hi = x0hi self._x1hi = x1hi self._x2hi = x2hi BaseData.__init__(self)
def __init__(self, name, x, y, bkg, staterror=None, bkg_scale=1, src_scale=1): self._bkg = np.asanyarray(bkg) self._bkg_scale = src_scale self.exposure = 1 self.subtracted = False self._backgrounds = [BkgDataset(bkg, bkg_scale)] BaseData.__init__(self) self.x = x self.y = y self.staterror = staterror
def __init__(self, name, xlo, xhi, ylo, yhi, z, bkg, staterror=None, bkg_scale=1, src_scale=1): self._bkg = np.asanyarray(bkg) self._bkg_scale = src_scale self.exposure = 1 self.subtracted = False self._backgrounds = [BkgDataset(bkg, bkg_scale)] BaseData.__init__(self) self.xlo = xlo self.xhi = xhi self.ylo = ylo self.yhi = yhi self.z = z self.staterror = staterror
def __init__(self, gp_data, name='GPData'): # sherpa does some magic here: it sets class attributes from constructor # arguments so `gp_data` will be available later on the instance. self._data_dummy = np.empty_like(gp_data.e_ref) BaseData.__init__(self)
def __init__(self, gp_data, name='GPData'): # sherpa does some magic here: it sets class attributes from constructor # arguments so `gp-data` will be available later on the instance. self._data_dummy = np.empty_like(gp_data.e_ref) BaseData.__init__(self)
def __init__(self, name='fermi_data_shim'): # TODO: need dummy? simplify? self.dep = np.array([42]) # Dummy self.indep = np.array([42]) # Dummy BaseData.__init__(self)