Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PyFstat
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gregory Ashton
PyFstat
Commits
5ccd2e3e
Commit
5ccd2e3e
authored
Dec 01, 2017
by
Gregory Ashton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify projection matrix plots
parent
9c2a9c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
pyfstat/grid_based_searches.py
pyfstat/grid_based_searches.py
+3
-9
No files found.
pyfstat/grid_based_searches.py
View file @
5ccd2e3e
...
...
@@ -755,7 +755,8 @@ class EarthTest(GridSearch):
F_at_zero
,
marginalised_F
,
max_F
,
max_F_params
))
return
F_at_zero
-
marginalised_F
,
(
F_at_zero
-
max_F
)
/
F_at_zero
def
plot_corner
(
self
,
prior_widths
=
None
,
fig
=
None
,
axes
=
None
):
def
plot_corner
(
self
,
prior_widths
=
None
,
fig
=
None
,
axes
=
None
,
projection
=
'log_mean'
):
Bsa
,
FmaxMismatch
=
self
.
marginalised_bayes_factor
(
prior_widths
)
data
=
self
.
data
[:,
-
1
].
reshape
(
...
...
@@ -770,7 +771,7 @@ class EarthTest(GridSearch):
from
projection_matrix
import
projection_matrix
fig
,
axes
=
projection_matrix
(
data
,
xyz
,
projection
=
'log_mean'
,
fig
,
axes
=
projection_matrix
(
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
(
...
...
@@ -782,13 +783,6 @@ class EarthTest(GridSearch):
fig
.
savefig
(
'{}/{}_projection_matrix.png'
.
format
(
self
.
outdir
,
self
.
label
))
fig
,
axes
=
projection_matrix
(
data
,
xyz
,
projection
=
'max_slice'
,
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'
.
format
(
self
.
duration
/
86400
,
self
.
F0
),
y
=
0.99
,
size
=
14
)
fig
.
savefig
(
'{}/{}_max_slice.png'
.
format
(
self
.
outdir
,
self
.
label
))
def
plot
(
self
,
key
,
prior_widths
=
None
):
Bsa
,
FmaxMismatch
=
self
.
marginalised_bayes_factor
(
prior_widths
)
...
...
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