Commit 4681eab2 authored by Alessio Berti's avatar Alessio Berti
Browse files

Change keyword 'image cleanining' to the correct spelling 'image cleaning'.

parent 58184324
data_files:
mc:
train_sample:
train_sample:
magic1:
input_mask: "../../../MCs/MAGIC/ST.03.07/za05to35/Train_sample/1.Calibrated/GA_M1*root"
hillas_output: "../../../MCs/MAGIC/ST.03.07/za05to35/Train_sample/2.Hillas/iv_hillas_m1.h5"
......@@ -8,7 +8,7 @@ data_files:
input_mask: "../../../MCs/MAGIC/ST.03.07/za05to35/Train_sample/1.Calibrated/GA_M2*root"
hillas_output: "../../../MCs/MAGIC/ST.03.07/za05to35/Train_sample/2.Hillas/iv_hillas_m2.h5"
test_sample:
test_sample:
magic1:
input_mask: "../../../MCs/MAGIC/ST.03.07/za05to35/Test_sample/1.Calibrated/GA_M1*root"
hillas_output: "../../../MCs/MAGIC/ST.03.07/za05to35/Test_sample/2.Hillas/iv_hillas_m1.h5"
......@@ -19,7 +19,7 @@ data_files:
reco_output: "../../../MCs/MAGIC/ST.03.07/za05to35/Test_sample/3.Reco/iv_reco_m2.h5"
data:
train_sample:
train_sample:
magic1:
input_mask: "../../../Data/MAGIC/Off/Train_sample/1.Calibrated/20*_M1_*root"
hillas_output: "../../../Data/MAGIC/Off/Train_sample/2.Hillas/iv_hillas_m1.h5"
......@@ -27,7 +27,7 @@ data_files:
input_mask: "../../../Data/MAGIC/Off/Train_sample/1.Calibrated/20*_M2_*root"
hillas_output: "../../../Data/MAGIC/Off/Train_sample/2.Hillas/iv_hillas_m2.h5"
test_sample:
test_sample:
magic1:
input_mask: "../../../Data/MAGIC/CrabNebula/1.Calibrated/20*_M1_*root"
hillas_output: "../../../Data/MAGIC/CrabNebula/ctapipe/2.Hillas/iv_hillas_m1.h5"
......@@ -38,7 +38,7 @@ data_files:
reco_output: "../../../Data/MAGIC/CrabNebula/ctapipe/3.Reco/reco_m2.h5"
image_cleanining:
image_cleaning:
magic:
charge_thresholds:
picture_thresh: 6
......
......@@ -614,8 +614,8 @@ if 'data_files' not in config:
print('Error: the configuration file is missing the "data_files" section. Exiting.')
exit()
if 'image_cleanining' not in config:
print('Error: the configuration file is missing the "image_cleanining" section. Exiting.')
if 'image_cleaning' not in config:
print('Error: the configuration file is missing the "image_cleaning" section. Exiting.')
exit()
# ------------------------------
......@@ -631,7 +631,7 @@ for data_type in config['data_files']:
except:
ValueError(f'Can not recognize the telescope type from name "{telescope}"')
if telescope_type not in config['image_cleanining']:
if telescope_type not in config['image_cleaning']:
raise ValueError(f'Guessed telescope type "{telescope_type}" does not have image cleaning settings')
is_mc = data_type.lower() == "mc"
......@@ -639,11 +639,11 @@ for data_type in config['data_files']:
if is_mc:
process_dataset_mc(input_mask=config['data_files'][data_type][sample][telescope]['input_mask'],
output_name=config['data_files'][data_type][sample][telescope]['hillas_output'],
image_cleaning_settings=config['image_cleanining'][telescope_type])
image_cleaning_settings=config['image_cleaning'][telescope_type])
else:
tel_id = re.findall('.*([_\d]+)', telescope)[0]
tel_id = int(tel_id)
process_dataset_data(input_mask=config['data_files'][data_type][sample][telescope]['input_mask'],
tel_id=tel_id,
output_name=config['data_files'][data_type][sample][telescope]['hillas_output'],
image_cleaning_settings=config['image_cleanining'][telescope_type])
image_cleaning_settings=config['image_cleaning'][telescope_type])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment