We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89eaaf7 + 1e3c645 commit a807ce8Copy full SHA for a807ce8
neo/rawio/winwcprawio.py
@@ -72,9 +72,9 @@ def _parse_header(self):
72
73
all_sampling_interval.append(analysisHeader['SamplingInterval'])
74
75
- assert np.unique(all_sampling_interval).size == 1
76
-
77
- self._sampling_rate = 1. / all_sampling_interval[0]
+ # sampling interval can be slightly varying due to float precision
+ # all_sampling_interval are not always unique
+ self._sampling_rate = 1. / np.median(all_sampling_interval)
78
79
signal_channels = []
80
for c in range(header['NC']):
0 commit comments