Skip to content

Commit

Permalink
Merge pull request #668 from StingraySoftware/fix_fits_lc_issue
Browse files Browse the repository at this point in the history
Fix issue with fracexp >~ 1
  • Loading branch information
matteobachetti authored Sep 20, 2022
2 parents 3d2b5a6 + 2298fb0 commit 56e8ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stingray/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def lcurve_from_fits(
fracexp = np.ones_like(rate)

good_intervals = (
(rate == rate) * (fracexp >= fracexp_limit) * (fracexp <= 1)
(rate == rate) * (fracexp >= fracexp_limit)
)

rate[good_intervals] /= fracexp[good_intervals]
Expand Down

0 comments on commit 56e8ab1

Please sign in to comment.