Skip to content

Commit

Permalink
commas
Browse files Browse the repository at this point in the history
  • Loading branch information
Deech08 committed Jul 18, 2024
1 parent 246f656 commit 76e17f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whampy/dataReduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def compute_transmissions(directory, lines = None, calibrator = None, plot = Fal
return np.array(airmass[masks[0]] * slope + y_int_{0})
""".format(calibs[0]), globals())
elif n_calib ==2:
exec("""def linear_model(airmass
exec("""def linear_model(airmass,
slope,
y_int_{0}, y_int_{1}, masks = None):
return np.array([airmass[masks[0]] * slope + y_int_{0},
Expand All @@ -209,7 +209,7 @@ def compute_transmissions(directory, lines = None, calibrator = None, plot = Fal
airmass[masks[3]] * slope + y_int_{3}])
""".format(calibs[0], calibs[1], calibs[2], calibs[3]), globals())
elif n_calib ==5:
exec("""def linear_model(airmass
exec("""def linear_model(airmass,
slope,
y_int_{0}, y_int_{1}, y_int_{2}, y_int_{3}, y_int_{4}, masks = None):
return np.array([airmass[0] * slope + y_int_{0},
Expand Down

0 comments on commit 76e17f8

Please sign in to comment.