Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ess-python-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
ESS Beam Physics
ess-python-tools
Commits
7e762b55
Commit
7e762b55
authored
9 years ago
by
Yngve Levinsen
Browse files
Options
Downloads
Patches
Plain Diff
improving help message
parent
d590671d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tracewin_errorstudy
+8
-8
8 additions, 8 deletions
tracewin_errorstudy
with
8 additions
and
8 deletions
tracewin_errorstudy
+
8
−
8
View file @
7e762b55
...
@@ -5,14 +5,14 @@
...
@@ -5,14 +5,14 @@
def
define_and_handle_args
():
def
define_and_handle_args
():
import
argparse
import
argparse
parser
=
argparse
.
ArgumentParser
(
description
=
"
Simple setup script to run TraceWin on HT Condor..
"
)
parser
=
argparse
.
ArgumentParser
(
description
=
"
Simple setup script to run TraceWin on HT Condor..
Default values in square brackets
"
)
parser
.
add_argument
(
"
-s
"
,
dest
=
"
seed
"
,
default
=
None
,
type
=
int
,
help
=
"
Define seed
"
)
parser
.
add_argument
(
"
-s
"
,
dest
=
"
seed
"
,
default
=
None
,
type
=
int
,
help
=
"
Define seed
[None]
"
)
parser
.
add_argument
(
"
-c
"
,
dest
=
"
calc_dir
"
,
default
=
'
temp
'
,
type
=
str
,
help
=
"
Path to calculation folder
"
)
parser
.
add_argument
(
"
-c
"
,
dest
=
"
calc_dir
"
,
default
=
'
temp
'
,
type
=
str
,
help
=
"
Path to calculation folder
[temp/]
"
)
parser
.
add_argument
(
"
-n
"
,
dest
=
"
num_jobs
"
,
default
=
0
,
type
=
int
,
help
=
"
Number of jobs
"
)
parser
.
add_argument
(
"
-n
"
,
dest
=
"
num_jobs
"
,
default
=
0
,
type
=
int
,
help
=
"
Number of jobs
[Count number of copied runs in TW]
"
)
parser
.
add_argument
(
"
-t
"
,
dest
=
"
study
"
,
default
=
1
,
type
=
int
,
help
=
"
Statistical study number
"
)
parser
.
add_argument
(
"
-t
"
,
dest
=
"
study
"
,
default
=
1
,
type
=
int
,
help
=
"
Statistical study number
[1]
"
)
parser
.
add_argument
(
"
-m
"
,
dest
=
"
multi
"
,
default
=
1
,
type
=
int
,
help
=
"
Multi-dynamic study
"
)
parser
.
add_argument
(
"
-m
"
,
dest
=
"
multi
"
,
default
=
1
,
type
=
int
,
help
=
"
Multi-dynamic study
[1]
"
)
parser
.
add_argument
(
"
-l
"
,
dest
=
"
lattice
"
,
default
=
'
lattice.dat
'
,
type
=
str
,
help
=
"
The lattice file for the project
"
)
parser
.
add_argument
(
"
-l
"
,
dest
=
"
lattice
"
,
default
=
'
lattice.dat
'
,
type
=
str
,
help
=
"
The lattice file for the project
[lattice.dat]
"
)
parser
.
add_argument
(
"
-q
"
,
dest
=
"
settings
"
,
default
=
'
settings.yml
'
,
type
=
str
,
help
=
"
The settings for the project template
"
)
parser
.
add_argument
(
"
-q
"
,
dest
=
"
settings
"
,
default
=
'
settings.yml
'
,
type
=
str
,
help
=
"
The settings for the project template
(yaml) [settings.yml]
"
)
parser
.
add_argument
(
"
-p
"
,
dest
=
"
priority
"
,
default
=
0
,
type
=
int
,
help
=
"
Job priority
"
)
parser
.
add_argument
(
"
-p
"
,
dest
=
"
priority
"
,
default
=
0
,
type
=
int
,
help
=
"
Job priority
"
)
return
parser
.
parse_args
()
return
parser
.
parse_args
()
...
...
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