Skip to content
Snippets Groups Projects
Commit 9df359f0 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Fix minor issues

parent f75614ec
No related branches found
No related tags found
1 merge request!478Rework of the skymap utilities
Pipeline #60249 failed
......@@ -255,6 +255,7 @@ class CompactBinaryCoalesenceResult(CoreResult):
cls = Clustered2DSkyKDE
distance = False
logger.info('Initialising skymap class')
skypost = cls(pts, trials=trials, multiprocess=jobs)
obj_filename = os.path.join(self.outdir, '{}_skypost.obj'.format(self.label))
......@@ -350,10 +351,8 @@ class CompactBinaryCoalesenceResult(CoreResult):
ii = np.round(np.searchsorted(np.sort(cls), contour) *
deg2perpix).astype(int)
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(
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')
filename = os.path.join(self.outdir, "{}_skymap.png".format(self.label))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment