From 3897ce1ccea24402d15c0700e69aeac18a8aeebf Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Mon, 8 Mar 2021 15:04:02 +0100 Subject: [PATCH] fixed oversight: forward DoubleCrystalMono name to DoubleCrystalMonoEnergy --- slic/devices/xoptics/dcm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slic/devices/xoptics/dcm.py b/slic/devices/xoptics/dcm.py index 4ee4427d..1bc0f704 100755 --- a/slic/devices/xoptics/dcm.py +++ b/slic/devices/xoptics/dcm.py @@ -10,8 +10,8 @@ from ..device import Device class DoubleCrystalMono(Device): - def __init__(self, Id, **kwargs): - super().__init__(Id, **kwargs) + def __init__(self, Id, name="Alvra DCM", **kwargs): + super().__init__(Id, name=name, **kwargs) self.theta = Motor(Id + ":RX12") self.x = Motor(Id + ":TX12") @@ -20,7 +20,7 @@ class DoubleCrystalMono(Device): self.roll2 = Motor(Id + ":RZ2") self.pitch2 = Motor(Id + ":RX2") - self.energy = DoubleCrystalMonoEnergy(Id) + self.energy = DoubleCrystalMonoEnergy(Id, name=name)