Skip to content

Commit 1279a10

Browse files
committed
Loading cutfiles determined RBS cut element incorrectly, since isotope information was passed to Element with symbol string. This affected at least ToF calibration, where mass of targets could not be determined.
1 parent 0fafb02 commit 1279a10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/cut_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def load_file(self, file: Path):
135135
elif key == "Detector Angle":
136136
self.detector_angle = int(value)
137137
elif key == "Scatter Element":
138-
self.element_scatter = Element(value)
138+
self.element_scatter = Element.from_string(value)
139139
elif key == "Element losses":
140140
self.is_elem_loss = value == "True"
141141
elif key == "Split count":

0 commit comments

Comments
 (0)