Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pygwinc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
gwinc
pygwinc
Commits
499a692b
Commit
499a692b
authored
4 years ago
by
Jameson Rollins
Browse files
Options
Downloads
Patches
Plain Diff
cli: better argument checking and errors for incompatible options
parent
edb100ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gwinc/__main__.py
+4
-2
4 additions, 2 deletions
gwinc/__main__.py
with
4 additions
and
2 deletions
gwinc/__main__.py
+
4
−
2
View file @
499a692b
...
...
@@ -115,6 +115,10 @@ def main():
# initial arg processing
if
os
.
path
.
splitext
(
os
.
path
.
basename
(
args
.
IFO
))[
1
]
in
DATA_SAVE_FORMATS
:
if
args
.
freq
:
parser
.
exit
(
2
,
"
Can not specify frequency array when loading traces from file.
\n
"
)
if
args
.
ifo
:
parser
.
exit
(
2
,
"
Can not override ifo parameters when loading traces from file.
\n
"
)
from
.io
import
load_hdf5
Budget
=
None
freq
,
traces
,
attrs
=
load_hdf5
(
args
.
IFO
)
...
...
@@ -122,8 +126,6 @@ def main():
# FIXME: deprecate 'IFO'
ifo
=
attrs
.
get
(
'
IFO
'
,
ifo
)
plot_style
=
attrs
if
args
.
freq
:
logger
.
warning
(
"
ignoring frequency specification for frequencies defined in HDF5...
"
)
else
:
Budget
=
load_budget
(
args
.
IFO
)
...
...
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