guillochon/MOSFiT

no chain.json produced

anhackastro opened this issue · 2 comments

no chain.json produced

I am running mosfit in the following way:

mosfit -e AT2018zr

I get the following files in the products folder :
AT2018zr_f90074903b8d8f99_598c36d0276de50b.json upload.json
AT2018zr.json walkers.json

On running the jupyter notebook mosfit.ipynb, I get a blank lc.pdf and the following error:
**File "", line 86
if label:
^
IndentationError: unindent does not match any outer indentation level

In the next cell i get the following error:

**FileNotFoundError Traceback (most recent call last)
in
----> 1 with open('../products/chain.json', 'r', encoding = 'utf-8') as f:
2 all_chain = np.array(json.load(f))
3
4 nparam = len(all_chain[0,0,0,:]);
5 fig = plt.figure(figsize=(4. * np.ceil(nparam / 4.), 8));

FileNotFoundError: [Errno 2] No such file or directory: '../products/chain.json'****

Hi @anhackastro,

The first bug looks to be a whitespace issue that does not appear to be in the shipped version of the notebook that comes with the code: https://github.com/guillochon/MOSFiT/blob/master/mosfit/jupyter/mosfit.ipynb, I think that suggests it's an unrelated problem.

As for producing the chain, it is not produced by default, you have to pass the -c flag (or --save-full-chain).