Skip to content
Snippets Groups Projects
Commit beea6b2f authored by David Hammer's avatar David Hammer
Browse files

Eliminate assignmentMandatory for manager reasons

parent f1e893ee
No related branches found
No related tags found
2 merge requests!12Snapshot: field test deployed version as of end of run 202201,!3Base correction device, CalCat interaction, DSSC and AGIPD devices
......@@ -87,7 +87,8 @@ class BaseCorrection(PythonDevice):
"Sources to get data from. Only incoming hashes from these sources "
"will be processed."
)
.assignmentMandatory()
.assignmentOptional()
.defaultValue([])
.commit(),
STRING_ELEMENT(expected)
.key("pulseFilter")
......@@ -144,19 +145,22 @@ class BaseCorrection(PythonDevice):
.key("dataFormat.pixelsX")
.displayedName("Pixels x")
.description("Number of pixels of image data along X axis")
.assignmentMandatory()
.assignmentOptional()
.defaultValue(512)
.commit(),
UINT32_ELEMENT(expected)
.key("dataFormat.pixelsY")
.displayedName("Pixels y")
.description("Number of pixels of image data along Y axis")
.assignmentMandatory()
.assignmentOptional()
.defaultValue(128)
.commit(),
UINT32_ELEMENT(expected)
.key("dataFormat.memoryCells")
.displayedName("Memory cells")
.description("Full number of memory cells in incoming data")
.assignmentMandatory()
.assignmentOptional()
.defaultValue(352)
.commit(),
STRING_ELEMENT(expected)
.key("dataFormat.outputAxisOrder")
......
......@@ -111,16 +111,22 @@ class BaseCalcatFriend:
(
STRING_ELEMENT(schema)
.key(f"{prefix}.detectorType")
.displayedName("Detector type name")
.description(
"Name of detector type in CalCat; typically has suffix '-Type'"
)
.readOnly()
.initialValue(detector_type)
.commit(),
STRING_ELEMENT(schema)
.key(f"{prefix}.detectorName")
.assignmentMandatory()
.assignmentOptional()
.defaultValue("")
.commit(),
STRING_ELEMENT(schema)
.key(f"{prefix}.karaboDa")
.assignmentMandatory()
.assignmentOptional()
.defaultValue("")
.commit(),
DOUBLE_ELEMENT(schema)
.key(f"{prefix}.memoryCells")
......
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