SOHView stop loading when there's error when reading a file
Ex: RT130-A195-1.cf
Bug display in the tracking box
Dir /Volumes/UNTITLED/SOHView_data/RT130/RT130-A195-1.cf can't be read due to error:
Traceback (most recent call last): File "/Users/ldam/opt/anaconda3/envs/soh/lib/python3.8/site-packages/obspy/io/reftek/packet.py",
line 250, in _initial_unpack_packets result[name][:] = converter(data[name])
File "/Users/ldam/opt/anaconda3/envs/soh/lib/python3.8/site-packages/obspy/io/reftek/util.py", line 31, in bcd_julian_day_string_to_nanoseconds_of_year return _timestrings_to_nanoseconds(timestrings)
File "/Users/ldam/opt/anaconda3/envs/soh/lib/python3.8/site-packages/obspy/io/reftek/util.py", line 67, in _timestrings_to_nanoseconds nanoseconds = np.array(nanoseconds, dtype="S3").astype(np.int64) ValueError: invalid literal for int() with base 10: b'9A' During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/Users/ldam/Documents/GIT/sohstationviewer/sohstationviewer/model/data_loader.py", line 67, in run data_object.__init__(
File "/Users/ldam/Documents/GIT/sohstationviewer/sohstationviewer/model/reftek/reftek.py", line 42, in __init__ self.processing_data()
File "/Users/ldam/Documents/GIT/sohstationviewer/sohstationviewer/model/data_type_model.py", line 278, in processing_data self.read_folder(self.dir)
File "/Users/ldam/Documents/GIT/sohstationviewer/sohstationviewer/model/reftek/reftek.py", line 92, in read_folder if not self.read_reftek_130(path2file):
File "/Users/ldam/Documents/GIT/sohstationviewer/sohstationviewer/model/reftek/reftek.py", line 136, in read_reftek_130 rt130 = core.Reftek130.from_file(path2file)
File "/Users/ldam/opt/anaconda3/envs/soh/lib/python3.8/site-packages/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string)
File "/Users/ldam/opt/anaconda3/envs/soh/lib/python3.8/site-packages/obspy/io/reftek/packet.py", line 252, in _initial_unpack_packets raise Reftek130UnpackPacketError(str(e)) obspy.io.reftek.packet.Reftek130UnpackPacketError: invalid literal for int() with base 10: b'9A'