Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
rubind authored Dec 3, 2016
1 parent 36d2021 commit 6a059a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ nMCMCchains = int(sys.argv[4])
nMCMCsamples = int(sys.argv[5])

e.g., python ../read_and_sample.py 2 3 1 4 5000 to sample a flat LCDM cosmology with redshift-dependent x1/c distributions and the host-mass relation enabled. Note that Stan uses half the chain as warmup by default (so we'll get 4*5000/2 = 10000 samples from this).

This creates "results.pickle," which can be read as a Python pickle:
stan_data, fit_params = pickle.load(open("results.pickle", 'rb'))

"fit_params" is a dictionary with the samples, e.g., median(fit_params["Om"])

0 comments on commit 6a059a0

Please sign in to comment.