new module for retrieving SC params #106
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First step for including the Slow Control (SC) monitoring in the package. The module
plot_sc.py
has a functiondef get_sc_param(param="DaqLeft-Temp2", dataset=dataset)
that helps getting the parameter (param
) of interest within a time interval specified indataset
(see the corresponding docstring for more details). The function returns the dataframe with data (column=value
) for the specified parameter, containing also a column for the unit (unit
) and the lower/upper limits (lower_lim
,upper_lim
) if present, otherwise they're set toNone
.Right now, the implemented parameters that one can plot from the SC database, are:
PT114
,PT115
,PT118
(cryostat pressures)PT202
,PT205
,PT208
(cryostat vacuum)LT01
(water loop fine fill level)RREiT
(injected air temperature clean room),RRNTe
(clean room temperature north),RRSTe
(clean room temperature south),ZUL_T_RR
(supply air temperature clean room)DaqLeft-Temp1
,DaqLeft-Temp2
,DaqRight-Temp1
,DaqRight-Temp2
(rack present temperatures)The loading and flagging of these parameters is performed thanks to an external json file (see
settings/sc-params.json
).