From 6ba62ba30af0d4803692e32d885f95033c51210a Mon Sep 17 00:00:00 2001 From: shivesh Date: Fri, 26 Apr 2019 11:00:16 -0500 Subject: make fig2 script --- mc_texture.py | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'mc_texture.py') diff --git a/mc_texture.py b/mc_texture.py index a22b4d0..5114e94 100755 --- a/mc_texture.py +++ b/mc_texture.py @@ -132,13 +132,15 @@ def parse_args(args=None): mcmc_utils.mcmc_argparse(parser) nuisance_argparse(parser) misc_utils.remove_option(parser, 'injected_ratio') + misc_utils.remove_option(parser, 'plot_angles') + misc_utils.remove_option(parser, 'plot_elements') if args is None: return parser.parse_args() else: return parser.parse_args(args.split()) def gen_identifier(args): f = '_DIM{0}'.format(args.dimension) - f += '_sfr_' + misc_utils.solve_ratio(args.source_ratio) + f += '_SRC_' + misc_utils.solve_ratio(args.source_ratio) f += '_{0}'.format(misc_utils.str_enum(args.texture)) return f @@ -231,17 +233,9 @@ def main(): ), samples), dtype=float ) - mcmc_utils.save_chains(frs, outfile) - - of = outfile[:5]+outfile[5:].replace('data', 'plots')+'_posterior' - plot_utils.chainer_plot( - infile = outfile+'.npy', - outfile = of, - outformat = ['png'], - args = args, - llh_paramset = llh_paramset, - fig_text = gen_figtext(args, llh_paramset) - ) + frs_scale = np.vstack((frs.T, samples[:-1].T)).T + mcmc_utils.save_chains(frs_scale, outfile) + print "DONE!" -- cgit v1.2.3