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
613f82f9
Commit
613f82f9
authored
8 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation on using arb. arrays
parent
5fe5f787
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyfstat/grid_based_searches.py
+7
-3
7 additions, 3 deletions
pyfstat/grid_based_searches.py
with
7 additions
and
3 deletions
pyfstat/grid_based_searches.py
+
7
−
3
View file @
613f82f9
...
...
@@ -21,7 +21,8 @@ class GridSearch(BaseSearchClass):
Alphas
=
[
0
],
Deltas
=
[
0
],
tref
=
None
,
minStartTime
=
None
,
maxStartTime
=
None
,
nsegs
=
1
,
BSGL
=
False
,
minCoverFreq
=
None
,
maxCoverFreq
=
None
,
earth_ephem
=
None
,
sun_ephem
=
None
,
detectors
=
None
,
SSBprec
=
None
,
injectSources
=
None
):
detectors
=
None
,
SSBprec
=
None
,
injectSources
=
None
,
input_arrays
=
False
):
"""
Parameters
----------
...
...
@@ -31,9 +32,12 @@ class GridSearch(BaseSearchClass):
File patern to match SFTs
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]. Unless
input_arrays == True, then these are the values to search at.
tref, minStartTime, maxStartTime: int
GPS seconds of the reference time, start time and end time
input_arrays: bool
if true, use the F0s, F1s, etc as is
For all other parameters, see `pyfstat.ComputeFStat` for details
"""
...
...
@@ -76,7 +80,7 @@ class GridSearch(BaseSearchClass):
def
get_array_from_tuple
(
self
,
x
):
if
len
(
x
)
==
1
:
return
np
.
array
(
x
)
elif
len
(
x
)
==
3
:
elif
len
(
x
)
==
3
and
self
.
input_arrays
is
False
:
return
np
.
arange
(
x
[
0
],
x
[
1
],
x
[
2
])
else
:
logging
.
info
(
'
Using tuple as is
'
)
...
...
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