Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Gregory Ashton
PyFstat
Commits
4870f7b0
Commit
4870f7b0
authored
Dec 14, 2017
by
Gregory Ashton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Point directly to where gridcorner can be installed from
Closes
#9
parent
0ce64e61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
examples/grid_examples/grid_F0F1F2.py
examples/grid_examples/grid_F0F1F2.py
+9
-3
pyfstat/grid_based_searches.py
pyfstat/grid_based_searches.py
+9
-4
No files found.
examples/grid_examples/grid_F0F1F2.py
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
))
pyfstat/grid_based_searches.py
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},'
...
...
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