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
ff786b94
Commit
ff786b94
authored
3 years ago
by
Stefan Reck
Browse files
Options
Downloads
Patches
Plain Diff
rename keys for extractors & add missing ones
parent
d6088eca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
orcasong/from_toml.py
+6
-2
6 additions, 2 deletions
orcasong/from_toml.py
tests/test_from_toml.py
+1
-1
1 addition, 1 deletion
tests/test_from_toml.py
with
7 additions
and
3 deletions
orcasong/from_toml.py
+
6
−
2
View file @
ff786b94
...
...
@@ -5,8 +5,12 @@ import orcasong.extractors as extractors
# built-in extractors. First argument has to be the input filename,
# other parameters can be set via 'extractor_config' dict in the toml
EXTRACTORS
=
{
"
neutrino_mc
"
:
extractors
.
get_neutrino_mc_info_extr
,
"
neutrino_data
"
:
extractors
.
get_real_data_info_extr
,
"
nu_chain_neutrino
"
:
extractors
.
get_neutrino_mc_info_extr
,
"
nu_chain_muon
"
:
extractors
.
get_muon_mc_info_extr
,
"
nu_chain_noise
"
:
extractors
.
get_random_noise_mc_info_extr
,
"
nu_chain_data
"
:
extractors
.
get_real_data_info_extr
,
# TODO "bundle_mc": ???,
# TODO "bundle_data": ???,
}
MODES
=
{
...
...
This diff is collapsed.
Click to expand it.
tests/test_from_toml.py
+
1
−
1
View file @
ff786b94
...
...
@@ -12,7 +12,7 @@ def _test_extr(infile):
return
infile
+
"
_extr
"
orcasong
.
from_toml
.
EXTRACTORS
[
"
neutrino
_mc
"
]
=
_test_extr
orcasong
.
from_toml
.
EXTRACTORS
[
"
nu_chain_
neutrino
"
]
=
_test_extr
class
TestSetupProcessorExampleConfig
(
TestCase
):
...
...
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