fix: beam centre model instantiation
This commit is contained in:
@@ -22,8 +22,8 @@ class DefaultGeometry(Geometry):
|
||||
def __init__(self, beamline: MXBeamline) -> None:
|
||||
super().__init__()
|
||||
with open(files("aarecommon.config") / "beamline_configs" / "beam_centres.json") as f:
|
||||
measurements = json.loads(f.read())[beamline.value.lower()]
|
||||
self._model = BeamCentre.model_validate(measurements)
|
||||
measured = json.loads(f.read())[beamline.value.lower()]
|
||||
self._model = BeamCentre.model_validate(measured)
|
||||
self._beamline = beamline
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user