Skip to content

Commit

Permalink
more general error exception in preprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMakus committed Jan 10, 2025
1 parent aefc8de commit ed0bfb5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
'Peter Makus, Christoph Sens-Schönfelder, and the SeisMIC development Team'

# The full version, including alpha/beta/rc tags
release = '0.6.7'
release = '0.6.8'

# -- General configuration ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = seismic
version = 0.6.7
version = 0.6.8
author = Peter Makus, Christoph Sens-Schönfelder, and the SeisMIC development team
author_email = makus@gfz-potsdam.de
description = Seismological Monitoring using Interferometric Concepts
Expand Down
6 changes: 3 additions & 3 deletions src/seismic/correlate/correlate.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Peter Makus (makus@gfz-potsdam.de)
Created: Monday, 29th March 2021 07:58:18 am
Last Modified: Monday, 04th December 2024 03:07:26 pm (J. Lehr)
Last Modified: Friday, 10th January 2025 10:14:58 am
'''
from typing import Iterator, List, Tuple, Optional
from warnings import warn
Expand Down Expand Up @@ -554,7 +554,7 @@ def _generate_data(self) -> Iterator[Tuple[Stream, bool]]:
st = preprocess_stream(
st, self.store_client, startt, endt, tl,
**self.options)
except ValueError as e:
except Exception as e:
self.logger.error(
'Stream preprocessing failed for '
f'{st[0].stats.network}.{st[0].stats.station} and time'
Expand Down Expand Up @@ -623,7 +623,7 @@ def _generate_data(self) -> Iterator[Tuple[Stream, bool]]:
win = preprocess_stream(
win, self.store_client, winstart, winend,
tl, **self.options)
except ValueError as e:
except Exception as e:
if st.count():
self.logger.error(
'Stream preprocessing failed for '
Expand Down

0 comments on commit ed0bfb5

Please sign in to comment.