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
Show more breadcrumbs
David Keitel
PyFstat
Commits
5ccd2e3e
Commit
5ccd2e3e
authored
7 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Simplify projection matrix plots
parent
9c2a9c57
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
+3
-9
3 additions, 9 deletions
pyfstat/grid_based_searches.py
with
3 additions
and
9 deletions
pyfstat/grid_based_searches.py
+
3
−
9
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
)
...
...
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