Adds method to calculate 1D median and quantiles and customise corner titles
- The method to calculate median and 1-sigma quantiles draws heavily on corner.py and is credited. In future, we may want to generate tables for which this may be useful.
- The titles in corner.py have changed from "label=median+/-1-sigma" to just "median+/-1-sigma".
- The previous behaviour can be recovered by giving
plot_corner
the commandshow_titles
.
Merge request reports
Activity
added 13 commits
-
c59106f2...d2bd4726 - 12 commits from branch
master
- a9a5dcc5 - Merge branch 'master' into add-one-dimensional-median-and-fix-corner-titles
-
c59106f2...d2bd4726 - 12 commits from branch
added 5 commits
-
a9a5dcc5...325e0499 - 4 commits from branch
master
- 416aab94 - Merge branch 'master' into 'add-one-dimensional-median-and-fix-corner-titles'
-
a9a5dcc5...325e0499 - 4 commits from branch
added 1 commit
- b5505020 - Merge branch 'master' of git.ligo.org:Monash/tupak into…
@colm.talbot okay done.
In fact while investigating this I found a bug in corner.py - they actually always report 1-sigma errors regardless of the quantiles (contrary to what the docs say).
- Add a if quantiles = None option to switch off things.
Edited by Gregory Ashtonadded 18 commits
-
9b3588ad...e4a9ab04 - 16 commits from branch
master
- 2575cc27 - Merge branch 'master' into add-one-dimensional-median-and-fix-corner-titles
- 7c665702 - Add optino to turn off titles
-
9b3588ad...e4a9ab04 - 16 commits from branch
Sorry to delay this again, but if I call
result.plot_corner(quantiles=None)
I get
Traceback (most recent call last): File "examples/other_examples/gaussian_example.py", line 54, in <module> result.plot_corner(quantiles=None) File "/Users/ctal0001/modules/tupak/tupak/core/result.py", line 357, in plot_corner par, quantiles=kwargs['quantiles']), File "/Users/ctal0001/modules/tupak/tupak/core/result.py", line 260, in get_one_dimensional_median_and_error_bar if len(quantiles) != 2: TypeError: object of type 'NoneType' has no len()
I think there should be an option to turn off just the lines, or just the titles.
added 1 commit
- c580453b - Further fix to the optional titles/quantiles
@colm.talbot okay, I've updated it. You can now pass
quantiles=None
which will switch both off. And I added some more docs.mentioned in commit e2740c3c
Please register or sign in to reply