Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Isken committed Mar 6, 2024
1 parent f7383c8 commit b7af24b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/qseek/models/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ def get_waveforms(
)
)
accessor_id = "qseek.event_detection"
if not times:
return []

tmin = min(times).timestamp() - seconds_before
tmax = max(times).timestamp() + seconds_after
Expand Down
4 changes: 2 additions & 2 deletions src/qseek/models/semblance.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ def __init__(
fill_zero_bytes(self.semblance_unpadded)
else:
logger.info(
"re-allocating semblance memory: %d", human_readable_bytes(n_values * 4)
"re-allocating semblance memory: %s", human_readable_bytes(n_values * 4)
)
self.semblance_unpadded = np.zeros((n_nodes, n_samples), dtype=np.float32)

Semblance._semblance_allocation = self.semblance_unpadded
Semblance._semblance_allocation = self.semblance_unpadded.ravel()
Semblance._stats.semblance_allocation_bytes = self.semblance_unpadded.nbytes

self._stats.semblance_size_bytes = self.semblance_unpadded.nbytes
Expand Down

0 comments on commit b7af24b

Please sign in to comment.