Commit 3e6fe9ec authored by soichiro.morisaki's avatar soichiro.morisaki

fix mcmc postproces bug

parent e1af5f8e
Pipeline #123960 failed with stages
in 120 minutes and 12 seconds
......@@ -277,5 +277,10 @@ if __name__ == '__main__':
for path in datafiles:
run_identifier = extract_metadata(path, metadata)
path_to_samples = '/'.join(['','lalinference',run_identifier,'posterior_samples'])
if path_to_samples in metadata:
for colname in final_posterior.columns:
metadata[path_to_samples].pop(colname, None)
write_samples(final_posterior, opts.pos,
path='/'.join(['','lalinference',run_identifier,'posterior_samples']), metadata=metadata)
path=path_to_samples, metadata=metadata)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment