accml_lib.core.model.output package
Submodules
accml_lib.core.model.output.orbit module
Orbit model as used at BESSY II
Based on 4 button bpms. Button data made available next to x and y
Todo
can that be the start for a more general orbit model
- class accml_lib.core.model.output.orbit.BPMButtons(a, b, c, d)[source]
Bases:
objectTodo
consider renaming bpm buttons to give them more meaning
- class accml_lib.core.model.output.orbit.BPMPosition(x, y)[source]
Bases:
objecttransversal position as read by a single bpm
If not available marked as nan. 64 bits provide enough data to store 32 bit int without conversion loss.
Note bpm data are in nm
Todo
naming that’s more universal than x and y e.g. hor(izontal) and vert(ical)
Will be an interesting concept e.g. at Novosibirsk’s recovery linac. Then these should be rather dispersion_plan / non dispersion plane
- class accml_lib.core.model.output.orbit.BPMReading(name, pos, btns)[source]
Bases:
object- Parameters:
name (Hashable)
pos (BPMPosition)
btns (BPMButtons)
- btns: BPMButtons
- pos: BPMPosition
accml_lib.core.model.output.result module
- class accml_lib.core.model.output.result.ReadTogether(data, start, end)[source]
Bases:
objectdata taken together
- Parameters:
data (Sequence[SingleReading])
start (datetime)
end (datetime)
- data: Sequence[SingleReading]
- class accml_lib.core.model.output.result.Result(data, orig_data)[source]
Bases:
object- Parameters:
data (Sequence[ResultOfExecutionStep])
orig_data (Sequence[ResultOfExecutionStep])
- data: Sequence[ResultOfExecutionStep]
in the expected view / context of the caller
- orig_data: Sequence[ResultOfExecutionStep]
in the expected view / context as produced by the backend
- class accml_lib.core.model.output.result.ResultOfExecutionStep(cmds, data)[source]
Bases:
object- Parameters:
data (Sequence[ReadTogether])
- cmds: Sequence[Command]
the relevant commands reflecting state changes the idea is that with data one can reconstruct in which state the machine or accelerator was
- data: Sequence[ReadTogether]
- class accml_lib.core.model.output.result.SingleFloat(value)[source]
Bases:
object- Parameters:
value (float)
- class accml_lib.core.model.output.result.SingleReading(name, payload, cmd)[source]
Bases:
objecte.g. reading from one device or tune of the machine
- Parameters:
name (str)
payload (object)
cmd (ReadCommand)
- cmd: ReadCommand