@@ -83,10 +83,13 @@ class Lightcurve(StingrayTimeseries):
8383 They will be used by other methods to have an indication of the
8484 "safe" time intervals to use during analysis.
8585
86- err_dist: str, optional, default ``None ``
86+ err_dist: str, optional, None, default ``poisson ``
8787 Statistical distribution used to calculate the
8888 uncertainties and other statistical values appropriately.
8989 Default makes no assumptions and keep errors equal to zero.
90+
91+ At the moment Stingray only uses ``poisson`` err_dist.
92+ All analysis in the light curve will assume Poisson errors.
9093
9194 bg_counts: iterable,`:class:numpy.array` or `:class:List` of floats, optional, default ``None``
9295 A list or array of background counts detected in the background extraction region
@@ -275,7 +278,9 @@ def __init__(
275278 if not skip_checks :
276279 time , counts , err = self .initial_optional_checks (time , counts , err , gti = gti )
277280
278- if err_dist .lower () not in valid_statistics :
281+ if err_dist is None :
282+ pass
283+ elif isinstance (err_dist , str ) or err_dist .lower () not in valid_statistics :
279284 # err_dist set can be increased with other statistics
280285 raise StingrayError (
281286 "Statistic not recognized." "Please select one of these: " ,
0 commit comments