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
ed9f479b
Commit
ed9f479b
authored
6 years ago
by
Jameson Graef Rollins
Browse files
Options
Downloads
Patches
Plain Diff
test: add argument to force recalc of all traces
parent
e56b55d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#28091
passed
6 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gwinc/test/__main__.py
+4
-4
4 additions, 4 deletions
gwinc/test/__main__.py
with
4 additions
and
4 deletions
gwinc/test/__main__.py
+
4
−
4
View file @
ed9f479b
...
...
@@ -57,6 +57,7 @@ def main():
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'
--plot
'
,
'
-p
'
,
action
=
'
store_true
'
,
help
=
'
plot differences
'
)
parser
.
add_argument
(
'
--save
'
,
'
-s
'
,
help
=
'
save plot to file
'
)
parser
.
add_argument
(
'
--recalc
'
,
'
-r
'
,
action
=
'
store_true
'
,
help
=
'
recalculate all traces
'
)
parser
.
add_argument
(
'
IFO
'
,
help
=
'
IFO name or description file
'
)
args
=
parser
.
parse_args
()
...
...
@@ -75,9 +76,10 @@ def main():
if
not
gwinc_hash
:
logging
.
warning
(
"
GWINCPATH not specified or does not exist; skipping check for changes to matgwinc code.
"
)
mrecalc
=
False
mrecalc
=
args
.
recalc
if
os
.
path
.
exists
(
mdata_pkl
):
if
os
.
path
.
exists
(
mdata_pkl
)
and
not
mrecalc
:
mrecalc
=
False
logging
.
info
(
"
loading matgwinc data {}...
"
.
format
(
mdata_pkl
))
with
open
(
mdata_pkl
,
'
rb
'
)
as
f
:
if
sys
.
version_info
.
major
>
2
:
...
...
@@ -91,8 +93,6 @@ def main():
if
gwinc_hash
and
mdata
[
'
gwinc_hash
'
]
!=
gwinc_hash
:
logging
.
info
(
"
matgwinc hash has changed: {}
"
.
format
(
gwinc_hash
))
mrecalc
=
True
else
:
mrecalc
=
True
if
mrecalc
:
logging
.
info
(
"
calculating matgwinc noises...
"
)
...
...
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