Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
gwinc
pygwinc
Commits
ed9f479b
Commit
ed9f479b
authored
Aug 15, 2018
by
Jameson Graef Rollins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: add argument to force recalc of all traces
parent
e56b55d9
Pipeline
#28091
passed with stages
in 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gwinc/test/__main__.py
gwinc/test/__main__.py
+4
-4
No files found.
gwinc/test/__main__.py
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..."
)
...
...
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