Skip to content

How to run SPAMM

Jo edited this page Sep 14, 2017 · 1 revision

Run SPAMM from the examples folder

  • $ python simple_run_general.py reads the data, implements the components, runs mcmc and saves (pickles) the "model" object and saves it to a gzipped file. It contains all of the chains, the sample spectrum, and the templates.

  • $ python read_model_run.py -m model_pickle_file reads the gzipped pickle file, uncompresses and un-pickles the object.

  • $ python analyze_model_run.py -m model_pickle_file reads the gzipped pickle file, uncompresses and un-pickles the object. Then creates a triangle plot and calls functions defined in Analysis.py to analyze the Model object that has been run - computes mean, median and percentiles - plots chains, posteriors, spectra. All the plots are saved in the exaples/plots folder. See below examples of plots:

mcmc chains triangle plot posteriors

Clone this wiki locally