From 2298fb0927df94f962ffff96ef818b12985fcd6f Mon Sep 17 00:00:00 2001 From: Matteo Bachetti Date: Wed, 24 Aug 2022 14:42:45 +0200 Subject: [PATCH] Fix issue with fracexp >~ 1 --- stingray/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stingray/io.py b/stingray/io.py index 355e807dd..546851d31 100644 --- a/stingray/io.py +++ b/stingray/io.py @@ -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]