Skip to content

Commit 89a3592

Browse files
authored
Merge branch 'dev' into deps/dependency-updates
2 parents 6070638 + 2ad0f22 commit 89a3592

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

xplt/timestructure.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,8 @@ def check_insufficient_statistics():
15981598
50 * duration / ntotal
15991599
) # at least 50 particles per bin (on average)
16001600
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
16021603
if check_insufficient_statistics():
16031604
return
16041605

@@ -1629,7 +1630,8 @@ def check_insufficient_statistics():
16291630
if counting_dt_min is None or counting_dt_min < 1 / timeseries.fs:
16301631
counting_dt_min = timeseries.dt # at least resolution of data
16311632
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
16331635
if check_insufficient_statistics():
16341636
return
16351637

0 commit comments

Comments
 (0)