Skip to content

Commit

Permalink
Added equality check instead of is check, fixes warning
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSkyentist committed Mar 7, 2024
1 parent 198eb36 commit 81cd40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grizli/fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -4645,7 +4645,7 @@ def get_flat_model(self, spectrum_1d, id=None, apply_mask=True, is_cgs=True):
"""
mfull = []
for ib, beam in enumerate(self.beams):
if spectrum_1d is -1:
if spectrum_1d == -1:
model_i = beam.model*1
else:
model_i = beam.compute_model(id=id, spectrum_1d=spectrum_1d,
Expand Down

0 comments on commit 81cd40e

Please sign in to comment.