File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1598,7 +1598,8 @@ def check_insufficient_statistics():
1598
1598
50 * duration / ntotal
1599
1599
) # at least 50 particles per bin (on average)
1600
1600
if counting_dt_max is None :
1601
- counting_dt_max = duration / 50 # at least 50 bins to calculate metric
1601
+ # at least N bins to calculate metric
1602
+ counting_dt_max = duration / self .counting_bins_per_evaluation
1602
1603
if check_insufficient_statistics ():
1603
1604
return
1604
1605
@@ -1629,7 +1630,8 @@ def check_insufficient_statistics():
1629
1630
if counting_dt_min is None or counting_dt_min < 1 / timeseries .fs :
1630
1631
counting_dt_min = timeseries .dt # at least resolution of data
1631
1632
if counting_dt_max is None :
1632
- counting_dt_max = duration / 50 # at least 50 bins to calculate metric
1633
+ # at least N bins to calculate metric
1634
+ counting_dt_max = duration / self .counting_bins_per_evaluation
1633
1635
if check_insufficient_statistics ():
1634
1636
return
1635
1637
You can’t perform that action at this time.
0 commit comments