Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no chain.json produced #170

Open
anhackastro opened this issue Feb 28, 2019 · 2 comments
Open

no chain.json produced #170

anhackastro opened this issue Feb 28, 2019 · 2 comments
Assignees

Comments

@anhackastro
Copy link

No description provided.

@anhackastro
Copy link
Author

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'****

@guillochon
Copy link
Owner

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).

@guillochon guillochon self-assigned this Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants