Skip to content

Commit

Permalink
fix(metrological_streams): fixed computational error for batches of s…
Browse files Browse the repository at this point in the history
…ize more than one
  • Loading branch information
BjoernLudwigPTB committed Feb 26, 2021
1 parent d0c5ecb commit 686bad5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion agentMET4FOF/metrological_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ def _next_sample_generator(self, batch_size: int = 1) -> np.ndarray:
time uncertainty ``ut`` and measurement uncertainty ``uv`` to sample
"""
_time: np.ndarray = (
np.arange(self._sample_idx, self._sample_idx + batch_size, 1.0).reshape(-1, 1) / self.sfreq
np.arange(self._sample_idx, self._sample_idx + batch_size, 1.0).reshape(
-1, 1
)
/ self.sfreq
)
self._sample_idx += batch_size

Expand Down

0 comments on commit 686bad5

Please sign in to comment.