Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OrcaSong
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Machine Learning
OrcaSong
Commits
9afe61da
Commit
9afe61da
authored
3 years ago
by
Daniel Guderian
Browse files
Options
Downloads
Patches
Plain Diff
that should only apply to the case when there is actually a std reco^^
parent
2c06afb3
No related branches found
No related tags found
1 merge request
!19
Resolve "error when using new extractor"
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
orcasong/extractors.py
+13
-9
13 additions, 9 deletions
orcasong/extractors.py
with
13 additions
and
9 deletions
orcasong/extractors.py
+
13
−
9
View file @
9afe61da
...
@@ -127,9 +127,10 @@ def get_real_data_info_extr(input_file):
...
@@ -127,9 +127,10 @@ def get_real_data_info_extr(input_file):
f
=
File
(
input_file
,
"
r
"
)
f
=
File
(
input_file
,
"
r
"
)
has_std_reco
=
"
reco
"
in
f
.
keys
()
has_std_reco
=
"
reco
"
in
f
.
keys
()
#also check, which rec types are present
if
has_std_reco
:
rec_types
,
rec_parameters_names
=
get_rec_types_in_file
(
f
)
#also check, which rec types are present
rec_types
,
rec_parameters_names
=
get_rec_types_in_file
(
f
)
def
mc_info_extr
(
blob
):
def
mc_info_extr
(
blob
):
"""
"""
...
@@ -195,8 +196,9 @@ def get_random_noise_mc_info_extr(input_file):
...
@@ -195,8 +196,9 @@ def get_random_noise_mc_info_extr(input_file):
f
=
File
(
input_file
,
"
r
"
)
f
=
File
(
input_file
,
"
r
"
)
has_std_reco
=
"
reco
"
in
f
.
keys
()
has_std_reco
=
"
reco
"
in
f
.
keys
()
#also check, which rec types are present
if
has_std_reco
:
rec_types
,
rec_parameters_names
=
get_rec_types_in_file
(
f
)
#also check, which rec types are present
rec_types
,
rec_parameters_names
=
get_rec_types_in_file
(
f
)
def
mc_info_extr
(
blob
):
def
mc_info_extr
(
blob
):
...
@@ -259,8 +261,9 @@ def get_neutrino_mc_info_extr(input_file):
...
@@ -259,8 +261,9 @@ def get_neutrino_mc_info_extr(input_file):
f
=
File
(
input_file
,
"
r
"
)
f
=
File
(
input_file
,
"
r
"
)
has_std_reco
=
"
reco
"
in
f
.
keys
()
has_std_reco
=
"
reco
"
in
f
.
keys
()
#also check, which rec types are present
if
has_std_reco
:
rec_types
,
rec_parameters_names
=
get_rec_types_in_file
(
f
)
#also check, which rec types are present
rec_types
,
rec_parameters_names
=
get_rec_types_in_file
(
f
)
# get the n_gen
# get the n_gen
header
=
HDF5Header
.
from_hdf5
(
input_file
)
header
=
HDF5Header
.
from_hdf5
(
input_file
)
...
@@ -407,8 +410,9 @@ def get_muon_mc_info_extr(input_file,prod_identifier=2,inactive_du=None):
...
@@ -407,8 +410,9 @@ def get_muon_mc_info_extr(input_file,prod_identifier=2,inactive_du=None):
f
=
File
(
input_file
,
"
r
"
)
f
=
File
(
input_file
,
"
r
"
)
has_std_reco
=
"
reco
"
in
f
.
keys
()
has_std_reco
=
"
reco
"
in
f
.
keys
()
#also check, which rec types are present
if
has_std_reco
:
rec_types
,
rec_parameters_names
=
get_rec_types_in_file
(
f
)
#also check, which rec types are present
rec_types
,
rec_parameters_names
=
get_rec_types_in_file
(
f
)
# no n_gen here, but needed for concatenation
# no n_gen here, but needed for concatenation
n_gen
=
1
n_gen
=
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment