We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc99eca commit c877332Copy full SHA for c877332
bin/binTimes.py
@@ -80,8 +80,8 @@
80
# make array of universal times: i.e. bins in which you will test binding
81
# default time delta is the minimum time delta within a single tile
82
if args.timeDelta is None:
83
- min_time_delta = np.min([(np.array(times[1:]) - np.array(times[:-1])).min()
84
- for times in timeDelta.values()])
+ min_time_delta = np.min([(np.sort(times[1:]) - np.sort(times[:-1])).min()
+ for times in timeDelta.values() if len(times) > 0])
85
else:
86
min_time_delta = args.timeDelta
87
0 commit comments