Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
gwinc
pygwinc
Commits
ea837c3f
Commit
ea837c3f
authored
Feb 11, 2021
by
Jameson Rollins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small tweak to handling of --ifo parameter
simplify things a bit
parent
7b0a5366
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
gwinc/__main__.py
gwinc/__main__.py
+7
-8
No files found.
gwinc/__main__.py
View file @
ea837c3f
...
...
@@ -73,7 +73,7 @@ parser.add_argument(
'--freq'
,
'-f'
,
metavar
=
'FLO:[NPOINTS:]FHI'
,
help
=
"logarithmic frequency array specification in Hz [{}]"
.
format
(
DEFAULT_FREQ
))
parser
.
add_argument
(
'--ifo'
,
'-o'
,
metavar
=
'PARAM=VAL'
,
'--ifo'
,
'-o'
,
metavar
=
'PARAM=VAL'
,
default
=
[],
#nargs='+', action='extend',
action
=
'append'
,
help
=
"override budget IFO parameter (may be specified multiple times)"
)
...
...
@@ -146,13 +146,12 @@ def main():
plot_style
=
getattr
(
budget
,
'plot_style'
,
{})
trace
=
None
if
args
.
ifo
:
for
paramval
in
args
.
ifo
:
try
:
param
,
val
=
paramval
.
split
(
'='
,
1
)
ifo
[
param
]
=
float
(
val
)
except
ValueError
:
parser
.
error
(
"Improper IFO parameter specification."
)
for
paramval
in
args
.
ifo
:
try
:
param
,
val
=
paramval
.
split
(
'='
,
1
)
ifo
[
param
]
=
float
(
val
)
except
ValueError
:
parser
.
error
(
f
"Improper IFO parameter specification:
{
paramval
}
"
)
if
args
.
yaml
:
if
not
ifo
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment