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.
1 parent fdeb9b8 commit e7becbdCopy full SHA for e7becbd
src/bids/variables/variables.py
@@ -413,7 +413,7 @@ def to_dense(self, sampling_rate=None):
413
duration = math.ceil( # Round up to nearest second
414
round(bin_sr * self.get_duration(), 3) # Cut off at millisecond precision
415
)
416
- ts = np.zeros(duration, dtype=self.values.dtype)
+ ts = pd.Series(0, index=np.arange(duration), dtype=self.values.dtype)
417
418
onsets = np.round(self.onset * bin_sr).astype(int)
419
durations = np.round(self.duration * bin_sr).astype(int)
@@ -446,7 +446,6 @@ def to_dense(self, sampling_rate=None):
446
source=self.source,
447
sampling_rate=sampling_rate)
448
449
-
450
return dense_var
451
452
def _extract_entities(self):
0 commit comments