Skip to content

Commit

Permalink
Merge pull request #834 from mperrin/fix_trending_histogram
Browse files Browse the repository at this point in the history
avoid linear interpolation between WFE values
  • Loading branch information
mperrin authored May 14, 2024
2 parents 43ca77d + 2a03c18 commit 70a678a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webbpsf/trending.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def wfe_histogram_plot(
dates = astropy.time.Time(opdtable1['date'], format='isot')

# Interpolate those RMSes into an even grid over time
interp_fn = scipy.interpolate.interp1d(mjds, rmses, kind='linear')
interp_fn = scipy.interpolate.interp1d(mjds, rmses, kind='nearest')

mjdrange = np.linspace(np.min(mjds), np.max(mjds), 2048)
interp_rmses = interp_fn(mjdrange)
Expand Down

0 comments on commit 70a678a

Please sign in to comment.