Skip to content

A program to analyse and plot graphics from internship at CERN. Data got from monitoring the motorized system mock-up of DarkSide-20k (public data)

License

Notifications You must be signed in to change notification settings

lucasboistay/cern_data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cern data programs

To see this file from a linux prompt, copy/paste in the console :

pandoc README.md | lynx -stdin

Installation

(only if you want to copy this on another computer, pass this if you're on lxplus.)

Clone the repository

git clone https://github.com/Rockinfox91/cern_data.git
cd cern_data
python3 -m venv .venv
. ./.venv/bin/activate
pip install -r requirements.txt

General information :

This module analyse data from the LN2 cold test experiment on DarkSide-20k.

This module is located in a virtual environment on the lxplus, to access it, do :

. ./.venv/bin/activate

You're now on the python VirtualENVironment. You can now use the module.

To logging out of the virtual environment, do :

deactivate

How to use module :

This module is composed of several executable .py files located in /src, to access a certain file, (let's say /src/get_graph.py) do python3 -m src.[name_of_the_file] (here python3 -m src.get_graph) without the .py extension !!

To have help on how to use options for a file, do

python3 -m src.[file] -h

append_data

Generate a file from all file data given.

python3 -m src.append_data file1 sorting_column finalname [options]

Examples

To get all linux files appended:

python3 -m src.append_data "RecordMonitoring" "LinuxTime" "linux_final_data" -a

To get all windows files appended:

python3 -m src.append_data "copy_cern" "Time" "windows_final_data" -a

To get all windows files for humidity appended:

python3 -m src.append_data "humidity" "Time" "humidity_final_data" -a

get_graph

Generate a graph from data in a file.

python3 -m src.get_graph file [columns] [options]

Examples

To get graph of tension for one day :

python3 -m src.get_graph "linux_final_data" "Tension2" "Tension4" --y-axis-label "Tension (N)" -n "Tension-2-4" --colx "LinuxTime" --timing "day" --start-date "2023.06.13_10:00:00" --end-date "2023.06.13_13:00:00" --y-limit 0 60

To get the graph of temperatures from all data

python3 -m src.get_graph "windows_final_data" "Ta" "Tb" "Tc" "Td" --y-axis-label "Temperature (°C)" --colx "Time" -t "day" --name "temperature_since_friday_18:00" --start-date "2023.06.09_18:00:00" --y-limit -200 -90 --y-line -186

To get the graph of current from all data

python3 -m src.get_graph "windows_final_data" "I1" "I3" --y-axis-label "Current (A)" --colx "Time" -t "day" --name "current_since_begining" --start-date "2023.06.09_18:00:00" 

To get the graph of all humidity from one test

python -m src.get_graph "copy_humidity_data1" "FlowOut" "Hout" --y-axis-label "Humidity (%)" -n "Humidity-2-4" --colx "Time" --timing "min" --y-limit -3 100 --start-date "2023.07.06_14:40:00" --end-date "2023.07.06_17:04:30"

calib_graph

To get the calibration test scatter plot.

python3 -m src.calib_graph

correlation

Plot correlation matrix for data files.

python3 -m src.correlation files [options]

Examples

To get a correlation graph of both Windows and Linux datas :

python3 -m src.correlation "linux_final_data" "windows_final_data" -m -ec "CryoL" "FlowIn" "Hin" -t "Linear Correlation between LinuxData and WindowsData"

About

A program to analyse and plot graphics from internship at CERN. Data got from monitoring the motorized system mock-up of DarkSide-20k (public data)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published