Skip to content

Commit

Permalink
adds warning that KNtimeshift is deprecated
Browse files Browse the repository at this point in the history
temporary warning to retain compatibility with previous codebases, should remove in future update after users have time to change priors
  • Loading branch information
tylerbarna committed Sep 8, 2023
1 parent 43695dd commit 4e30aad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nmma/em/likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ def log_likelihood(self):
usedIdx = np.where(np.isfinite(mag_app_filt))[0]
sample_times_used = self.sample_times[usedIdx]
mag_app_used = mag_app_filt[usedIdx]
t0 = self.parameters["timeshift"]
try:
t0 = self.parameters["timeshift"]
except KeyError:
print("Warning: the 'KNtimeshift' parameter is deprecated as of nmma 0.0.19, please update your prior to use 'timeshift' instead")
t0 = self.parameters["KNtimeshift"]
continue
if len(mag_app_used) > 0:
mag_app_interp[filt] = interp1d(
sample_times_used + t0,
Expand Down

0 comments on commit 4e30aad

Please sign in to comment.