-
Notifications
You must be signed in to change notification settings - Fork 1
How to run SPAMM
Run SPAMM from the examples folder
-
$ python simple_run_general.pyreads 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_filereads the gzipped pickle file, uncompresses and un-pickles the object. -
$ python analyze_model_run.py -m model_pickle_filereads 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:
