Skip to content

Commit 79b24f2

Browse files
fixes test falling
1 parent 458b19c commit 79b24f2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

stingray/lightcurve.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,7 @@ def __init__(
278278
if not skip_checks:
279279
time, counts, err = self.initial_optional_checks(time, counts, err, gti=gti)
280280

281-
if err_dist is None:
282-
pass
283-
elif isinstance(err_dist, str) or err_dist.lower() not in valid_statistics:
281+
if err_dist is None or err_dist.lower() not in valid_statistics:
284282
# err_dist set can be increased with other statistics
285283
raise StingrayError(
286284
"Statistic not recognized." "Please select one of these: ",

0 commit comments

Comments
 (0)