File tree 2 files changed +4
-3
lines changed
corems/mass_spectra/input
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -992,7 +992,8 @@ def get_error_logs(self):
992
992
error_log_item = self .iRawDataPlus .GetErrorLogItem (i )
993
993
rt = error_log_item .RetentionTime
994
994
message = error_log_item .Message
995
- error_logs [rt ] = message
995
+ # Use the index `i` as the unique ID key
996
+ error_logs [i ] = {'rt' : rt , 'message' : message }
996
997
return error_logs
997
998
998
999
Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ def test_import_thermo_parse_metadata():
363
363
364
364
# Read the error logs
365
365
error_logs = parser .get_error_logs ()
366
- assert error_logs [0.0 ] == 'Activation type: ETD '
366
+ assert error_logs [0 ][ 'message' ] == 'm/z: 202.00000 '
367
367
368
368
# Read the sample information
369
369
sampleinfo = parser .get_sample_information ()
@@ -372,4 +372,4 @@ def test_import_thermo_parse_metadata():
372
372
# Close the file
373
373
parser .close_file ()
374
374
assert parser .iRawDataPlus .get_IsOpen () == False
375
-
375
+
You can’t perform that action at this time.
0 commit comments