Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, name='absorptionedge'):
self.edgew = Parameter(name, 'edgew', 5000., tinyval,
frozen=True, units='angstroms')
self.tau = Parameter(name, 'tau', 0.5)
self.index = Parameter(name, 'index', 3.0, alwaysfrozen=True,
hidden=True)
ArithmeticModel.__init__(self, name,
(self.edgew, self.tau, self.index))
def __init__(self, name='devaucouleurs2d'):
self.r0 = Parameter(name, 'r0', 10, 0, hard_min=0)
self.xpos = Parameter(name, 'xpos', 0)
self.ypos = Parameter(name, 'ypos', 0)
self.ellip = Parameter(name, 'ellip', 0, 0, 0.999, 0, 0.9999)
self.theta = Parameter(name, 'theta', 0, -2*numpy.pi, 2*numpy.pi, -2*numpy.pi,
4*numpy.pi, 'radians')
self.ampl = Parameter(name, 'ampl', 1)
ArithmeticModel.__init__(self, name,
(self.r0, self.xpos, self.ypos, self.ellip,
self.theta, self.ampl))
self.cache = 0
def __init__(self, name='logemission'):
self.fwhm = Parameter(name, 'fwhm', 100., tinyval, hard_min=tinyval,
units="km/s")
self.pos = Parameter(name, 'pos', 5000., tinyval, frozen=True,
units='angstroms')
self.flux = Parameter(name, 'flux', 1.)
self.skew = Parameter(name, 'skew', 1., tinyval, frozen=True)
self.limit = Parameter(name, 'limit', 4., alwaysfrozen=True,
hidden=True )
ArithmeticModel.__init__(self, name,
(self.fwhm, self.pos, self.flux,
self.skew, self.limit))
def __init__(self, name='fm'):
self.ebv = Parameter(name, 'ebv', 0.5) # E(B-V)
self.x0 = Parameter(name, 'x0', 4.6) # Position of Drude bump
self.width = Parameter(name, 'width', 0.06) # Width of Drude bump
self.c1 = Parameter(name, 'c1', 0.2)
self.c2 = Parameter(name, 'c2', 0.1)
self.c3 = Parameter(name, 'c3', 0.02)
self.c4 = Parameter(name, 'c4', 0.1)
ArithmeticModel.__init__(self, name, (self.ebv, self.x0,
self.width, self.c1, self.c2,
self.c3, self.c4))
def __init__(self, name='ccm'):
self.ebv = Parameter(name, 'ebv', 0.5)
self.r = Parameter(name, 'r', 3.2)
ArithmeticModel.__init__(self, name, (self.ebv, self.r))
def __init__(self, name='normbeta1d'):
self.pos = Parameter(name, 'pos', 0)
self.width = Parameter(name, 'width', 1, tinyval, hard_min=tinyval)
self.index = Parameter(name, 'index', 2.5, 0.5, 1000, 0.5)
self.ampl = Parameter(name, 'ampl', 1, 0)
ArithmeticModel.__init__(self, name,
(self.pos, self.width, self.index, self.ampl))
def __init__(self, name='shell2d'):
self.xpos = Parameter(name, 'xpos', 0) # p[0]
self.ypos = Parameter(name, 'ypos', 0) # p[1]
self.ampl = Parameter(name, 'ampl', 1) # p[2]
self.r0 = Parameter(name, 'r0', 1, 0) # p[3]
self.width = Parameter(name, 'width', 0.1, 0)
ArithmeticModel.__init__(self, name, (self.xpos, self.ypos, self.ampl, self.r0, self.width))
def __init__(self, name='integrate1d'):
tol = numpy.finfo(float).eps
self.epsabs = Parameter(name, 'epsabs', tol, alwaysfrozen=True)
self.epsrel = Parameter(name, 'epsrel', 0, alwaysfrozen=True)
self.maxeval = Parameter(name, 'maxeval', 10000, alwaysfrozen=True)
ArithmeticModel.__init__(self, name, (self.epsabs,self.epsrel,
self.maxeval))
def __init__(self, name='jdpileup'):
self.alpha = Parameter(name, 'alpha', 0.5, 0, 1, 0, 1)
self.g0 = Parameter(name, 'g0', 1, tinyval, 1, tinyval, 1, frozen=True)
self.f = Parameter(name, 'f', 0.95, 0.9, 1, 0, 1)
self.n = Parameter(name, 'n', 1, tinyval, 100, tinyval, 2048,
alwaysfrozen=True)
self.ftime = Parameter(name, 'ftime', 3.241, tinyval, 5, tinyval, 100,
'sec', alwaysfrozen=True)
self.fracexp = Parameter(name, 'fracexp', 0.987, 0, 1, 0, 1,
alwaysfrozen=True)
self.nterms = Parameter(name, 'nterms', 30, 1, 100, 1, 100,
alwaysfrozen=True)
self._results = None
ArithmeticModel.__init__(self, name,
(self.alpha, self.g0, self.f, self.n,
self.ftime, self.fracexp, self.nterms))
def __init__(self, name='powerlaw'):
self.refer = Parameter(name, 'refer', 5000., tinyval,
hard_min=tinyval, frozen=True,
units="angstroms")
self.ampl = Parameter(name, 'ampl', 1., tinyval,
hard_min=tinyval, units="angstroms")
self.index = Parameter(name, 'index', -0.5, -10.0, 10.0)
ArithmeticModel.__init__(self, name,
(self.refer, self.ampl, self.index))