Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyFstat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Pep Covas Vidal
PyFstat
Commits
e67d91d6
Commit
e67d91d6
authored
7 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Minor formatting fixes in GridGlitchSearch
parent
f969c4a1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyfstat/grid_based_searches.py
+8
-4
8 additions, 4 deletions
pyfstat/grid_based_searches.py
with
8 additions
and
4 deletions
pyfstat/grid_based_searches.py
+
8
−
4
View file @
e67d91d6
...
...
@@ -530,13 +530,14 @@ class GridUniformPriorSearch():
class
GridGlitchSearch
(
GridSearch
):
"""
Grid search using the SemiCoherentGlitchSearch
"""
@helper_functions.initializer
def
__init__
(
self
,
label
,
outdir
,
sftfilepattern
=
None
,
F0s
=
[
0
],
def
__init__
(
self
,
label
,
outdir
=
'
data
'
,
sftfilepattern
=
None
,
F0s
=
[
0
],
F1s
=
[
0
],
F2s
=
[
0
],
delta_F0s
=
[
0
],
delta_F1s
=
[
0
],
tglitchs
=
None
,
Alphas
=
[
0
],
Deltas
=
[
0
],
tref
=
None
,
minStartTime
=
None
,
maxStartTime
=
None
,
minCoverFreq
=
None
,
maxCoverFreq
=
None
,
BSGL
=
False
,
detectors
=
None
,
write_after
=
1000
):
detectors
=
None
):
"""
Run a single-glitch grid search
Parameters
----------
label, outdir: str
...
...
@@ -546,12 +547,15 @@ class GridGlitchSearch(GridSearch):
mutiple patterns can be given separated by colons.
F0s, F1s, F2s, delta_F0s, delta_F1s, tglitchs, Alphas, Deltas: tuple
Length 3 tuple describing the grid for each parameter, e.g
[F0min, F0max, dF0], for a fixed value simply give [F0].
[F0min, F0max, dF0], for a fixed value simply give [F0]. Note that
tglitchs is referenced to zero at minStartTime.
tref, minStartTime, maxStartTime: int
GPS seconds of the reference time, start time and end time
For all other parameters, see pyfstat.ComputeFStat.
"""
self
.
BSGL
=
False
self
.
input_arrays
=
False
if
tglitchs
is
None
:
raise
ValueError
(
'
You must specify `tglitchs`
'
)
...
...
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