def __init__(self, arf=None, rmf=None): self.arf = arf self.rmf = rmf name = '' if arf is not None and rmf is not None: name = 'apply_rmf(apply_arf(' elif arf is not None: name = 'apply_arf(' elif rmf is not None: name = 'apply_rmf(' Model.__init__(self, name)
def __init__(self, name='renormalizerkernel1d'): self.flux = Parameter(name, 'flux', 1.0) self.lo = Parameter(name, 'lo', 0, alwaysfrozen=True) self.hi = Parameter(name, 'hi', 100, alwaysfrozen=True) Model.__init__(self, name, (self.flux, self.lo, self.hi))