Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new module for retrieving SC params #106

Merged
merged 12 commits into from
May 16, 2023
Merged

Conversation

sofia-calgaro
Copy link
Collaborator

@sofia-calgaro sofia-calgaro commented May 16, 2023

First step for including the Slow Control (SC) monitoring in the package. The module plot_sc.py has a function def get_sc_param(param="DaqLeft-Temp2", dataset=dataset) that helps getting the parameter (param) of interest within a time interval specified in dataset (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 to None.

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).

@sofia-calgaro
Copy link
Collaborator Author

sofia-calgaro commented May 16, 2023

Still have to decide how to include the SC plotting in config json file (use subsystem entry again? put a new entry?) and in the rest of the code for plotting values stored in the previously output dataframe.

Also, we need to decide if we want to plot time variations of these data separately or together with other geds parameters, like in the following case:
image

And consider we may want to mix them also in a par1.VS.par2 plot, like:
image

@sofia-calgaro sofia-calgaro merged commit 555723b into legend-exp:dev May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant