Skip to content

Commit

Permalink
Fixing the issue with reading fullSEED files.
Browse files Browse the repository at this point in the history
Now all fullSEED files should be read correctly. The issue was that the
first data record in fullSEED files previously must have had the
dataquality D. Now all valid dataqualities are allowed.
  • Loading branch information
krischer committed Nov 4, 2013
1 parent 24d76e8 commit 1e30bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obspy/mseed/util.py
Expand Up @@ -302,7 +302,7 @@ def _getRecordInformation(file_object, offset=0):
# reset file pointer
file_object.seek(record_start, 0)
# cycle through file using record length until first data record found
while file_object.read(7)[6] != 'D':
while file_object.read(7)[6] not in ['D', 'R', 'Q', 'M']:
record_start += rec_len
file_object.seek(record_start, 0)

Expand Down

0 comments on commit 1e30bb7

Please sign in to comment.