Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KM3BUU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
simulation
KM3BUU
Merge requests
!47
Resolve "Muon Propagation"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Muon Propagation"
8-muon-propagation
into
master
Overview
0
Commits
35
Pipelines
10
Changes
10
Merged
Johannes Schumann
requested to merge
8-muon-propagation
into
master
2 years ago
Overview
0
Commits
35
Pipelines
10
Changes
4
Expand
Closes
#8 (closed)
0
0
Merge request reports
Compare
version 6
version 9
2282b970
2 years ago
version 8
3d04d3bf
2 years ago
version 7
61dd30cc
2 years ago
version 6
e4b2e7bc
2 years ago
version 5
9f314ed4
2 years ago
version 4
e91b9f18
2 years ago
version 3
6c2dfec7
2 years ago
version 2
5dca5863
2 years ago
version 1
e3db91f7
2 years ago
master (base)
and
latest version
latest version
ad436a0b
35 commits,
2 years ago
version 9
2282b970
34 commits,
2 years ago
version 8
3d04d3bf
16 commits,
2 years ago
version 7
61dd30cc
16 commits,
2 years ago
version 6
e4b2e7bc
15 commits,
2 years ago
version 5
9f314ed4
14 commits,
2 years ago
version 4
e91b9f18
12 commits,
2 years ago
version 3
6c2dfec7
11 commits,
2 years ago
version 2
5dca5863
10 commits,
2 years ago
version 1
e3db91f7
9 commits,
2 years ago
Show latest version
4 files
+
19
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
km3buu/utils/initials.py
+
8
−
5
Options
@@ -6,15 +6,17 @@
Initialisation script for different KM3BUU parts
Usage:
initials.py (--proposal)
initials.py (--proposal
=PROPOSAL_PATH
)
initials.py (-h | --help)
PROPOSAL setup crosssection tables of proposal based on the standard settings used in KM3BUU
Options:
-h --help Show this screen.
-h --help Show this screen.
--proposal=PROPOSAL_PATH Do PROPOSAL initialisations and write tables to PP_PATH
"""
import
logging
from
pathlib
import
Path
FORMAT
=
'
%(asctime)s %(levelname)s %(filename)s -- %(message)s
'
logging
.
basicConfig
(
format
=
FORMAT
)
@@ -26,13 +28,14 @@ def main():
args
=
docopt
(
__doc__
)
if
args
[
'
--proposal
'
]:
from
km3buu.config
import
Config
tablepath
=
Config
().
proposal_itp_tables
tablepath
=
Path
(
args
[
'
--proposal
'
])
tablepath
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
Config
().
proposal_itp_tables
=
str
(
tablepath
.
absolute
())
logging
.
info
(
f
"
Writing PROPOSAL tables to:
{
tablepath
}
"
)
from
km3buu.propagation
import
_setup_utility
,
PROPOSAL_LEPTON_DEFINITIONS
,
PROPOSAL_TARGET_WATER
from
km3buu.propagation
import
_setup_utility
,
PROPOSAL_LEPTON_DEFINITIONS
,
PROPOSAL_TARGET_WATER
,
PROPOSAL_TARGET_ROCK
import
proposal
as
pp
pp
.
InterpolationSettings
.
tables_path
=
'
.
'
_setup_utility
(
PROPOSAL_LEPTON_DEFINITIONS
[
13
](),
PROPOSAL_TARGET_WATER
)
_setup_utility
(
PROPOSAL_LEPTON_DEFINITIONS
[
15
](),
Loading