@@ -140,9 +140,9 @@ def _get_xx(xx, ftype):
140
140
# set if None
141
141
# -------------
142
142
143
- lbck = ['linear ' , 'exp_lamb' ]
143
+ lbck = ['poly ' , 'exp_lamb' ]
144
144
llines = ['gauss' , 'lorentz' , 'pvoigt' , 'voigt' ]
145
- lpulse = ['pulse1 ' , 'pulse2 ' , 'lognorm' ]
145
+ lpulse = ['pulse_exp ' , 'pulse_gauss ' , 'lognorm' ]
146
146
147
147
if xx is None :
148
148
if ftype in lbck + llines :
@@ -201,12 +201,13 @@ def _get_dpar_xfree(ftype, xx):
201
201
# xfree
202
202
# ---------------
203
203
204
- if ftype == 'linear ' :
204
+ if ftype == 'poly ' :
205
205
206
- a1 = - 1 / Dx
207
- a0 = 2 - a1 * x0
206
+ a0 = 1
207
+ a1 = - 0.2
208
+ a2 = - 1
208
209
209
- xfree = np .r_ [a0 , a1 ]
210
+ xfree = np .r_ [a0 , a1 , a2 ]
210
211
211
212
elif ftype == 'exp_lamb' :
212
213
@@ -252,7 +253,7 @@ def _get_dpar_xfree(ftype, xx):
252
253
253
254
xfree = np .r_ [amp , vccos , sigma , gam ]
254
255
255
- elif ftype == 'pulse1 ' :
256
+ elif ftype == 'pulse_exp ' :
256
257
257
258
amp = 1
258
259
t0 = 0.3
@@ -261,7 +262,7 @@ def _get_dpar_xfree(ftype, xx):
261
262
262
263
xfree = np .r_ [amp , t0 , t_up , t_down ]
263
264
264
- elif ftype == 'pulse2 ' :
265
+ elif ftype == 'pulse_gauss ' :
265
266
266
267
amp = 1
267
268
t0 = 0.3
0 commit comments