Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alessio Berti
magic-cta-pipe
Commits
4681eab2
Commit
4681eab2
authored
Mar 10, 2020
by
Alessio Berti
Browse files
Change keyword 'image cleanining' to the correct spelling 'image cleaning'.
parent
58184324
Changes
2
Hide whitespace changes
Inline
Side-by-side
CrabNebula.yaml
View file @
4681eab2
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_cleanin
in
g
:
image_cleaning
:
magic
:
charge_thresholds
:
picture_thresh
:
6
...
...
hillas_preprocessing.py
View file @
4681eab2
...
...
@@ -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_cleanin
in
g'
not
in
config
:
print
(
'Error: the configuration file is missing the "image_cleanin
in
g" 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_cleanin
in
g'
]:
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_cleanin
in
g'
][
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_cleanin
in
g'
][
telescope_type
])
image_cleaning_settings
=
config
[
'image_cleaning'
][
telescope_type
])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment