forked from SengerM/AC-LGAD_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlot_2D_Scan.py
32 lines (26 loc) · 832 Bytes
/
Plot_2D_Scan.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from scan_2D import plot_everything_from_TCT_2D_scan
from the_bureaucrat.bureaucrats import RunBureaucrat # https://github.com/SengerM/the_bureaucrat
from pathlib import Path
import logging
if __name__ == '__main__':
import argparse
from plotly_utils import set_my_template_as_default
import sys
logging.basicConfig(
stream = sys.stderr,
level = logging.INFO,
format = '%(asctime)s|%(levelname)s|%(funcName)s|%(message)s',
datefmt = '%Y-%m-%d %H:%M:%S',
)
set_my_template_as_default()
parser = argparse.ArgumentParser()
parser.add_argument('--dir',
metavar = 'path',
help = 'Path to the base measurement directory.',
required = True,
dest = 'directory',
type = str,
)
args = parser.parse_args()
bureaucrat = RunBureaucrat(Path(args.directory))
plot_everything_from_TCT_2D_scan(bureaucrat)