-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trying to make unitless parameters display nicely in the getdist view…
…. For issue #1272 (indirectly)
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# This code is a part of X-ray: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS). | ||
# Last modified by David J Turner ([email protected]) 21/11/2024, 21:54. Copyright (c) The Contributors | ||
# Last modified by David J Turner ([email protected]) 22/11/2024, 14:34. Copyright (c) The Contributors | ||
|
||
import inspect | ||
import os | ||
|
@@ -1504,8 +1504,8 @@ def view_getdist_corner(self, model: str, settings: dict = {}, figsize: tuple = | |
in enumerate(model_obj.par_publication_names)] | ||
|
||
# Need to remove $ from the labels because getdist adds them itself | ||
stripped_labels = [(lab_pair[0] + r"\: \left[" + lab_pair[1] + r'\right]').replace('$', '') | ||
for lab_pair in labels] | ||
stripped_labels = [(lab_pair[0] + (r"\: \left[" + lab_pair[1] + r'\right]').replace('$', '')) | ||
if lab_pair[1] != '' else '' for lab_pair in labels] | ||
|
||
# Setup the getdist sample object | ||
gd_samp = MCSamples(samples=flat_chains, names=model_obj.par_names, labels=stripped_labels, | ||
|