Skip to content
Snippets Groups Projects
Commit a49a58b8 authored by Andrea Parenti's avatar Andrea Parenti
Browse files

Fix allowed states / 2

parent e23dcc6c
No related branches found
No related tags found
2 merge requests!2Draft: Feat/p8003,!1First version
Pipeline #162698 failed
......@@ -19,7 +19,7 @@ from psutil import net_io_counters
from karabo.middlelayer import (
AccessMode, Bool, Configurable, Device, Double, MetricPrefix, Node, Slot,
State, String, UInt16, UInt64, Unit, background, get_property,
State, String, UInt16, UInt64, Unit, background, isSet, get_property,
set_property, sleep)
from ._version import version as deviceVersion
......@@ -357,15 +357,23 @@ class Tempus(Device):
defaultValue=100,
allowedStates={State.INIT, State.ON})
equalisationFile = String(
@String(
displayedName="Equalisation npy File",
defaultValue="B3_equalisation_HV100.npy",
allowedStates={State.INIT})
allowedStates={State.INIT, State.ON})
async def equalisationFile(self, value):
self.equalisationFile = value
if isSet(value):
self.state = State.INIT # force re-initialization
maskFile = String(
@String(
displayedName="Mask npy rFle",
defaultValue="W15_pixel-mask_200V_20240612_late2.npy",
allowedStates={State.INIT})
allowedStates={State.INIT, State.ON})
async def maskFile(self, value):
self.maskFile = value
if isSet(value):
self.state = State.INIT # force re-initialization
externalSync = Bool(
displayedName="External Sync ('Pad')",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment