rt2ms crashes when fed data with old firmware version
Tried to feed py3_rt2ms data with RT130 FW version 2.8.8s, results in crash with terminal output below:
2023-06-01 09:48:08 - INFO - Working on CF card directory: /Users/sveitch/Documents/Projects/seed/200918_Shaanxi/rt130_data/SVC1/RAW/995F-1.cf
2023-06-01 09:48:08 - INFO - Parsing and writing state of health information for datalogger number: 995F
2023-06-01 09:48:08 - WARNING - UserWarning: FD packet, wrong conversion routine for input variable: implement_time
Traceback (most recent call last):
File "/Users/sveitch/anaconda3/envs/passoft3/bin/rt2ms", line 8, in <module>
sys.exit(main())
File "/Users/sveitch/anaconda3/envs/passoft3/lib/python3.8/site-packages/rt2ms_py3/rt2ms_py3.py", line 224, in main
rt130s.create_log(unit_id)
File "/Users/sveitch/anaconda3/envs/passoft3/lib/python3.8/site-packages/rt2ms_py3/rt130_files.py", line 185, in create_log
self.logs.append(Packet.from_data(data).__str__())
File "/Users/sveitch/anaconda3/envs/passoft3/lib/python3.8/site-packages/obspy_replace/soh_packet.py", line 848, in __str__
.format(self.time_tag(self.time, implement_time=self.implement_time),
File "/Users/sveitch/anaconda3/envs/passoft3/lib/python3.8/site-packages/obspy_replace/soh_packet.py", line 304, in time_tag
if implement_time is not None and time > UTCDateTime(ns=implement_time):
File "/Users/sveitch/anaconda3/envs/passoft3/lib/python3.8/site-packages/obspy/core/utcdatetime.py", line 286, in __init__
self._ns = ns
File "/Users/sveitch/anaconda3/envs/passoft3/lib/python3.8/site-packages/obspy/core/utcdatetime.py", line 1259, in __setattr__
super(UTCDateTime, self).__setattr__(key, value)
File "/Users/sveitch/anaconda3/envs/passoft3/lib/python3.8/site-packages/obspy/core/utcdatetime.py", line 524, in _set_ns
raise TypeError('nanoseconds must be set as int/long type')
TypeError: nanoseconds must be set as int/long type