Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
lscsoft
bilby
Commits
9df359f0
Commit
9df359f0
authored
5 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Fix minor issues
parent
f75614ec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!478
Rework of the skymap utilities
Pipeline
#60249
failed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bilby/gw/result.py
+2
-3
2 additions, 3 deletions
bilby/gw/result.py
with
2 additions
and
3 deletions
bilby/gw/result.py
+
2
−
3
View file @
9df359f0
...
@@ -255,6 +255,7 @@ class CompactBinaryCoalesenceResult(CoreResult):
...
@@ -255,6 +255,7 @@ class CompactBinaryCoalesenceResult(CoreResult):
cls
=
Clustered2DSkyKDE
cls
=
Clustered2DSkyKDE
distance
=
False
distance
=
False
logger
.
info
(
'
Initialising skymap class
'
)
skypost
=
cls
(
pts
,
trials
=
trials
,
multiprocess
=
jobs
)
skypost
=
cls
(
pts
,
trials
=
trials
,
multiprocess
=
jobs
)
obj_filename
=
os
.
path
.
join
(
self
.
outdir
,
'
{}_skypost.obj
'
.
format
(
self
.
label
))
obj_filename
=
os
.
path
.
join
(
self
.
outdir
,
'
{}_skypost.obj
'
.
format
(
self
.
label
))
...
@@ -350,10 +351,8 @@ class CompactBinaryCoalesenceResult(CoreResult):
...
@@ -350,10 +351,8 @@ class CompactBinaryCoalesenceResult(CoreResult):
ii
=
np
.
round
(
np
.
searchsorted
(
np
.
sort
(
cls
),
contour
)
*
ii
=
np
.
round
(
np
.
searchsorted
(
np
.
sort
(
cls
),
contour
)
*
deg2perpix
).
astype
(
int
)
deg2perpix
).
astype
(
int
)
for
i
,
p
in
zip
(
ii
,
pp
):
for
i
,
p
in
zip
(
ii
,
pp
):
# FIXME: use Unicode symbol instead of TeX '$^2$'
# because of broken fonts on Scientific Linux 7.
text
.
append
(
text
.
append
(
u
'
{:d}% area: {:d} deg
²
'
.
format
(
p
,
i
,
grouping
=
True
))
u
'
{:d}% area: {:d} deg
$^2$
'
.
format
(
p
,
i
,
grouping
=
True
))
ax
.
text
(
1
,
1
,
'
\n
'
.
join
(
text
),
transform
=
ax
.
transAxes
,
ha
=
'
right
'
)
ax
.
text
(
1
,
1
,
'
\n
'
.
join
(
text
),
transform
=
ax
.
transAxes
,
ha
=
'
right
'
)
filename
=
os
.
path
.
join
(
self
.
outdir
,
"
{}_skymap.png
"
.
format
(
self
.
label
))
filename
=
os
.
path
.
join
(
self
.
outdir
,
"
{}_skymap.png
"
.
format
(
self
.
label
))
...
...
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