diff --git a/MonteCarloMarginalizeCode/Code/bin/plot_posterior_corner.py b/MonteCarloMarginalizeCode/Code/bin/plot_posterior_corner.py index f6c2b4666..bb908e851 100755 --- a/MonteCarloMarginalizeCode/Code/bin/plot_posterior_corner.py +++ b/MonteCarloMarginalizeCode/Code/bin/plot_posterior_corner.py @@ -254,6 +254,7 @@ def render_coordinates(coord_names,logparams=[]): parser.add_argument("--no-mod-psi",action="store_true",help="Default is to take psi mod pi. If present, does not do this") parser.add_argument("--downselect-parameter",action='append', help='Name of parameter to be used to eliminate grid points ') parser.add_argument("--downselect-parameter-range",action='append',type=str) +parser.add_argument("--disable-special-ranges", action='store_true', help="Disable the default special parameter ranges. If not specified, the default ranges are used.") # ---- User-supplied coordinate-convert plugin (additive; the hardcoded RIFT # conversion path is untouched). When --supplementary-coordinate-code is # omitted these flags are a no-op and plotting behaves byte-identically @@ -491,7 +492,8 @@ def _materialize_plugin_columns(samples, source_label=""): 'eccentricity':[opts.ecc_min,opts.ecc_max], 'meanPerAno':[opts.meanPerAno_min,opts.meanPerAno_max] } - +if opts.disable_special_ranges: + special_param_ranges = {} #mc_range deprecated by generic bind_param #if opts.mc_range: # special_param_ranges['mc'] = eval(opts.mc_range)