Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mcconv
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
monte_carlo
mcconv
Commits
87de1dd9
Commit
87de1dd9
authored
3 years ago
by
Dmitry Romanov
Browse files
Options
Downloads
Patches
Plain Diff
Fix files
parent
5f4de3b3
Branches
master
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+4
-0
4 additions, 0 deletions
.gitignore
mcconv/__init__.py
+7
-2
7 additions, 2 deletions
mcconv/__init__.py
mcconv/version.py
+2
-2
2 additions, 2 deletions
mcconv/version.py
with
13 additions
and
4 deletions
.gitignore
+
4
−
0
View file @
87de1dd9
...
...
@@ -217,3 +217,7 @@ output.hepmc
test_create_save_load.hepmc2
test_create_save_load.hepmc3
test_env/
test_venv/
This diff is collapsed.
Click to expand it.
mcconv/__init__.py
+
7
−
2
View file @
87de1dd9
...
...
@@ -138,9 +138,14 @@ def process_beam_arguments(beams):
return
beam_particles
def
hepmc_convert_cli
(
argv
):
def
hepmc_convert_cli
(
argv
=
None
):
"""
Main entry point of mcconv executable
"""
# Set System arguments by default
if
argv
is
None
:
argv
=
sys
.
argv
[
1
:]
# Configure parser
parser
=
argparse
.
ArgumentParser
(
description
=
_app_descr
,
formatter_class
=
argparse
.
RawDescriptionHelpFormatter
)
parser
.
add_argument
(
'
inputs
'
,
nargs
=
'
+
'
,
help
=
"
File name (wildcards allowed)
"
)
parser
.
add_argument
(
"
-v
"
,
"
--verbose
"
,
action
=
"
store_true
"
,
help
=
"
Enable verbose output. Info level
"
)
...
...
@@ -227,4 +232,4 @@ def hepmc_convert_cli(argv):
if
__name__
==
'
__main__
'
:
hepmc_convert_cli
(
sys
.
argv
[
1
:]
)
hepmc_convert_cli
()
This diff is collapsed.
Click to expand it.
mcconv/version.py
+
2
−
2
View file @
87de1dd9
# Stringif
i
ed version. Used both for setup.py and for internal code
version
=
'
0.0.1
3
'
# Stringif
y
ed version. Used both for setup.py and for internal code
version
=
'
0.0.1
5
'
# version as the tuple of ints
version_tuple
=
tuple
(
int
(
val
)
for
val
in
version
.
split
(
'
.
'
))
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