Skip to content

Commit

Permalink
fix sky_file test
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrammer committed May 24, 2024
1 parent 163c600 commit 8b48678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msaexp/slit_combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,7 @@ def estimate_sky(
nbin = sky_wave.shape[0]
xbin = np.interp(self.wave, sky_wave, np.arange(nbin) / nbin)

if self.meta["sky_file"] is not "N/A":
if self.meta["sky_file"] not in [None, "N/A"]:
df_use = self.meta["global_sky_df"]
else:
df_use = df
Expand Down

0 comments on commit 8b48678

Please sign in to comment.