Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
getdp
cim
Commits
626894c5
Commit
626894c5
authored
7 years ago
by
Nicolas Marsic
Browse files
Options
Downloads
Patches
Plain Diff
typo
parent
fd0f536c
Branches
master
Tags
v0.2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/args.py
+3
-4
3 additions, 4 deletions
bin/args.py
with
3 additions
and
4 deletions
bin/args.py
+
3
−
4
View file @
626894c5
...
@@ -10,7 +10,7 @@ See the LICENSE.txt and README.md for more license and copyright information.
...
@@ -10,7 +10,7 @@ See the LICENSE.txt and README.md for more license and copyright information.
import
argparse
import
argparse
def
parse
():
def
parse
():
"""
Parses
the
python script arguments
"""
Parses python script arguments
Returns an argparse
Returns an argparse
"""
"""
...
@@ -38,7 +38,7 @@ def parse():
...
@@ -38,7 +38,7 @@ def parse():
parser
.
add_argument
(
"
-nodes
"
,
type
=
int
,
default
=
100
,
parser
.
add_argument
(
"
-nodes
"
,
type
=
int
,
default
=
100
,
help
=
"
number of nodes for trapezoidal rule
"
)
help
=
"
number of nodes for trapezoidal rule
"
)
parser
.
add_argument
(
"
-maxIt
"
,
type
=
int
,
default
=
10
,
parser
.
add_argument
(
"
-maxIt
"
,
type
=
int
,
default
=
10
,
help
=
"
maxim
a
m number of iterations
"
)
help
=
"
maxim
u
m number of iterations
"
)
parser
.
add_argument
(
"
-lStart
"
,
type
=
int
,
default
=
4
,
parser
.
add_argument
(
"
-lStart
"
,
type
=
int
,
default
=
4
,
help
=
"
initial size of col(A0)
"
)
help
=
"
initial size of col(A0)
"
)
parser
.
add_argument
(
"
-lStep
"
,
type
=
int
,
default
=
3
,
parser
.
add_argument
(
"
-lStep
"
,
type
=
int
,
default
=
3
,
...
@@ -66,8 +66,7 @@ desc = ("a non-linear eigenvalue solver " +
...
@@ -66,8 +66,7 @@ desc = ("a non-linear eigenvalue solver " +
class
MyFormatter
(
argparse
.
HelpFormatter
):
class
MyFormatter
(
argparse
.
HelpFormatter
):
"""
Custom Formatter
"""
Custom Formatter
"""
"""
def
__init__
(
self
,
prog
):
def
__init__
(
self
,
prog
):
super
(
MyFormatter
,
self
).
__init__
(
prog
,
super
(
MyFormatter
,
self
).
__init__
(
prog
,
...
...
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