diff --git a/sohstationviewer/model/reftek_data/log_info.py b/sohstationviewer/model/reftek_data/log_info.py index 486efcb069cedebd70ce136d9f5bb2bdcb9d1b98..1604d72adc467012eca213a92f4feef18670004f 100644 --- a/sohstationviewer/model/reftek_data/log_info.py +++ b/sohstationviewer/model/reftek_data/log_info.py @@ -503,15 +503,13 @@ class LogInfo(): self.gps_vers.add(gps_ver) # ================= ERROR/WARNING ========================= - elif "ERROR:" in line: - # These lines are generated by programs like ref2segy and do - # not have any time associated with them so just use whatever - # time was last in Time. - self.add_chan_info('Error/Warning', soh_epoch, -2, idx) - elif any(x in line for x in ["NO VALID DISK", "FAILED"]): + elif any(x in line for x in ["ERROR:", "NO VALID DISK", "FAILED"]): + # These lines with "ERROR:" are generated by programs like + # ref2segy and do not have any time associated with them so + # just use whatever time was last in Time. epoch = self.simple_read(line)[1] if epoch: - self.add_chan_info('Error/Warning', epoch, -1, idx) + self.add_chan_info('Error/Warning', epoch, 1, idx) elif "WARNING" in line: # Warings come in lines with the time from the RT130 and lines @@ -523,7 +521,7 @@ class LogInfo(): else: # Just use whatever time was last in Time. # The 2 means that the dots will be a little different. - self.add_chan_info('Error/Warning', soh_epoch, 1, idx) + self.add_chan_info('Error/Warning', soh_epoch, -1, idx) elif (all(x in line for x in ["BAD", "MAKER"]) or any(x in line for x in ["ERTFS", "IDE BUSY"])):