Skip to content

Commit

Permalink
exception for MSEEDErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMakus committed Jan 14, 2025
1 parent 3c459c0 commit 9994909
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 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.9'
release = '0.6.10'

# -- 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.9
version = 0.6.10
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
7 changes: 6 additions & 1 deletion src/seismic/trace_data/waveform.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
Peter Makus (makus@gfz-potsdam.de)
Created: Thursday, 18th February 2021 02:30:02 pm
Last Modified: Tuesday, 10th December 2024 03:51:56 pm
Last Modified: Tuesday, 14th January 2025 02:00:04 pm
'''

import fnmatch
import logging
import os
import datetime
import glob
Expand All @@ -20,6 +21,7 @@
import re

import numpy as np
import obspy
from obspy.clients.fdsn import Client as rClient
from obspy.clients.fdsn.header import FDSNNoDataException
from obspy.clients.filesystem import sds
Expand Down Expand Up @@ -341,6 +343,9 @@ def _load_local(
network, station, location, channel, starttime, endtime)
except OSError:
return None
except obspy.io.mseed.internalMSEEDError as e:
logging.warning(str(e))
return None
# Making sure that the order is correct for the next bit to work
st.sort(['starttime'])
if _check_times and (
Expand Down

0 comments on commit 9994909

Please sign in to comment.