Closed joefowler closed 5 months ago
Original comment by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).
diff --git a/mass/off/experiment_state.py b/mass/off/experiment_state.py
index 1fb3cea33..de6626934 100644
--- a/mass/off/experiment_state.py
+++ b/mass/off/experiment_state.py
@@ -113,8 +113,13 @@ class ExperimentStateFile:
assert i0_allLabels > 0
for k in statesDict.keys():
last_key = k
- s = statesDict[last_key]
- s2 = slice(s.start, i0_unixnanos+len(unixnanos)) # set the slice from the start of the state to the last new record
+ s = statesDict[last_key]
+ if isinstance(s, slice):
+ s2 = slice(s.start, i0_unixnanos+len(unixnanos)) # set the slice from the start of the state to the last new record
+ if isinstance(s, list):
+ s_ = s[-1] # get last instance of same state
+ s[-1] = slice(s_.start, i0_unixnanos+len(unixnanos)) # set the slice from the start of the state to the last new record
+ s2 = s
statesDict[k] = s2
return statesDict
appears to fix it, but since massgui only works with an older version of mass I can’t easily make a PR from the ebit computer
Original report by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).