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

Crash when kind attribute missing in model JSONs #166

Open
guillochon opened this issue Oct 15, 2018 · 0 comments
Open

Crash when kind attribute missing in model JSONs #166

guillochon opened this issue Oct 15, 2018 · 0 comments

Comments

@guillochon
Copy link
Owner

Via @jkobori:

I'm having problem running the latest mosfit. After I upgraded it with pip to the version 1.1.4
I get the following error:

Traceback (most recent call last):
 File "/home/jkobori/.local/bin/mosfit", line 11, in <module>
   sys.exit(main())
 File "/home/jkobori/.local/lib/python2.7/site-packages/mosfit/main.py", line 949, in main
   Fitter(**fitargs).fit_events(**fitargs)
 File "/home/jkobori/.local/lib/python2.7/site-packages/mosfit/fitter.py", line 350, in fit_events
   print_trees=print_trees)
 File "/home/jkobori/.local/lib/python2.7/site-packages/mosfit/model.py", line 237, in __init__
   self._model, self._trees, self._simple_trees, kinds=root_kinds)
 File "/home/jkobori/.local/lib/python2.7/site-packages/mosfit/model.py", line 773, in construct_trees
   depth=depth + 1)
 File "/home/jkobori/.local/lib/python2.7/site-packages/mosfit/model.py", line 773, in construct_trees
   depth=depth + 1)
 File "/home/jkobori/.local/lib/python2.7/site-packages/mosfit/model.py", line 773, in construct_trees
   depth=depth + 1)
 File "/home/jkobori/.local/lib/python2.7/site-packages/mosfit/model.py", line 736, in construct_trees
   if entry['kind'] in kinds or tag == name:
KeyError: 'kind'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant