You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am having problems reading seg2 files if the keyword 'NOTE' exists but has no contents behind :
Initial code (function "parse_free_form" near the end, around line 327 in file seg2.py:
if key == 'NOTE':
value = [cleanup_and_decode_string(line)
for line in value.split(self.line_terminator)
if line]
else:
value = cleanup_and_decode_string(value)
I suggest:
if key == 'NOTE':
try:
value = [cleanup_and_decode_string(line)
for line in value.split(self.line_terminator)
if line]
except:
value = ''
else:
value = cleanup_and_decode_string(value)
Avoid duplicates
Bug Summary
Hi, I am having problems reading seg2 files if the keyword 'NOTE' exists but has no contents behind :
Initial code (function "parse_free_form" near the end, around line 327 in file seg2.py:
I suggest:
Rec_00001.zip
Code to Reproduce
Error Traceback
ObsPy Version?
1.3.0
Operating System?
Windows
Python Version?
3.8.13
Installation Method?
conda
The text was updated successfully, but these errors were encountered: