Skip to content

Commit 143d4a2

Browse files
keflavichbsipocz
authored andcommitted
fix missing context issue. Note that RTFD failed _silently_! The image
is missing but there is no error in the log!
1 parent 5f6dd95 commit 143d4a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/linelists/cdms/cdms.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ We can then compare linear interpolation to the fitted interpolation above:
267267
param, cov = curve_fit(f, temp[np.isfinite(part)], part[np.isfinite(part)])
268268
x = np.linspace(2.7,500)
269269
y = f(x,param[0])
270+
inds = np.argsort(temp)
271+
interp_Q = np.interp(x, temp[inds], 10**part[inds])
270272

271273
plt.clf()
272274
plt.plot(x, (10**y-interp_Q)/10**y)

0 commit comments

Comments
 (0)