Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gregory Ashton
PyFstat
Commits
43f2bcc4
Commit
43f2bcc4
authored
Nov 16, 2016
by
Gregory Ashton
Browse files
Adds functionality to skip template counting
parent
9224e741
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat.py
View file @
43f2bcc4
...
...
@@ -54,6 +54,7 @@ parser.add_argument("-c", "--clean", help="Don't use cached data",
action
=
"store_true"
)
parser
.
add_argument
(
"-u"
,
"--use-old-data"
,
action
=
"store_true"
)
parser
.
add_argument
(
'-s'
,
"--setup-only"
,
action
=
"store_true"
)
parser
.
add_argument
(
'-n'
,
"--no-template-counting"
,
action
=
"store_true"
)
parser
.
add_argument
(
'unittest_args'
,
nargs
=
'*'
)
args
,
unknown
=
parser
.
parse_known_args
()
sys
.
argv
[
1
:]
=
args
.
unittest_args
...
...
@@ -1998,6 +1999,8 @@ class MCMCFollowUpSearch(MCMCSemiCoherentSearch):
def
get_number_of_templates_estimate
(
self
,
nsegs
):
""" Returns V, Vsky, Vf estimated from the super-sky metric """
if
args
.
no_template_counting
:
return
'N/A'
tboundaries
=
np
.
linspace
(
self
.
minStartTime
,
self
.
maxStartTime
,
nsegs
+
1
)
if
'Alpha'
in
self
.
theta_keys
:
...
...
Write
Preview
Supports
Markdown
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