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
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
Gregory Ashton
PyFstat
Commits
4870f7b0
Commit
4870f7b0
authored
7 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Point directly to where gridcorner can be installed from
Closes
#9
parent
0ce64e61
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/grid_examples/grid_F0F1F2.py
+9
-3
9 additions, 3 deletions
examples/grid_examples/grid_F0F1F2.py
pyfstat/grid_based_searches.py
+9
-4
9 additions, 4 deletions
pyfstat/grid_based_searches.py
with
18 additions
and
7 deletions
examples/grid_examples/grid_F0F1F2.py
+
9
−
3
View file @
4870f7b0
import
pyfstat
import
numpy
as
np
import
matplotlib.pyplot
as
plt
from
projection_matrix
import
projection_matrix
try
:
from
gridcorner
import
gridcorner
except
ImportError
:
raise
ImportError
(
"
Python module
'
gridcorner
'
not found, please install from
"
"
https://gitlab.aei.uni-hannover.de/GregAshton/gridcorner
"
)
F0
=
30.0
F1
=
1e-10
...
...
@@ -53,6 +59,6 @@ twoF = search.data[:, -1].reshape((len(F0_vals), len(F1_vals), len(F2_vals)))
xyz
=
[
F0_vals
,
F1_vals
,
F2_vals
]
labels
=
[
'
$f - f_0$
'
,
'
$\dot{f} - \dot{f}_0$
'
,
'
$\ddot{f} - \ddot{f}_0$
'
,
'
$\widetilde{2\mathcal{F}}$
'
]
fig
,
axes
=
projection_matrix
(
twoF
,
xyz
,
projection
=
'
log_mean
'
,
labels
=
labels
,
whspace
=
0.1
,
factor
=
1.8
)
fig
,
axes
=
gridcorner
.
gridcorner
(
twoF
,
xyz
,
projection
=
'
log_mean
'
,
labels
=
labels
,
whspace
=
0.1
,
factor
=
1.8
)
fig
.
savefig
(
'
{}/{}_projection_matrix.png
'
.
format
(
outdir
,
label
))
This diff is collapsed.
Click to expand it.
pyfstat/grid_based_searches.py
+
9
−
4
View file @
4870f7b0
...
...
@@ -782,10 +782,15 @@ class EarthTest(GridSearch):
r
'
$\Delta P_\mathrm{spin}$ [min]
'
,
r
'
$2\mathcal{F}$
'
]
from
projection_matrix
import
projection_matrix
fig
,
axes
=
projection_matrix
(
data
,
xyz
,
projection
=
projection
,
factor
=
1.6
,
labels
=
labels
)
try
:
from
gridcorner
import
gridcorner
except
ImportError
:
raise
ImportError
(
"
Python module
'
gridcorner
'
not found, please install from
"
"
https://gitlab.aei.uni-hannover.de/GregAshton/gridcorner
"
)
fig
,
axes
=
gridcorner
(
data
,
xyz
,
projection
=
projection
,
factor
=
1.6
,
labels
=
labels
)
axes
[
-
1
][
-
1
].
axvline
((
lal
.
DAYJUL_SI
-
lal
.
DAYSID_SI
)
/
60.0
,
color
=
'
C3
'
)
plt
.
suptitle
(
'
T={:.1f} days, $f$={:.2f} Hz, $\log\mathcal{{B}}_{{S/A}}$={:.1f},
'
...
...
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