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

Constructing output failed #197

Open
Brookluo opened this issue Nov 15, 2021 · 1 comment
Open

Constructing output failed #197

Brookluo opened this issue Nov 15, 2021 · 1 comment

Comments

@Brookluo
Copy link

Brookluo commented Nov 15, 2021

Hi, I met an issue when MOSFit was generating output. All the fitting process was successful, but I got this error message during constructing output.

Constructing output...
Traceback (most recent call last):
  File "/d/users/brook/.conda/envs/py37/bin/mosfit", line 10, in <module>
    sys.exit(main())
  File "/d/users/brook/.conda/envs/py37/lib/python3.7/site-packages/mosfit/main.py", line 973, in main
    Fitter(**fitargs).fit_events(**fitargs)
  File "/d/users/brook/.conda/envs/py37/lib/python3.7/site-packages/mosfit/fitter.py", line 498, in fit_events
    extra_outputs=extra_outputs)
  File "/d/users/brook/.conda/envs/py37/lib/python3.7/site-packages/mosfit/fitter.py", line 603, in fit_data
    compare_to_existing=False)
  File "/d/users/brook/.conda/envs/py37/lib/python3.7/site-packages/astrocats/catalog/entry.py", line 676, in init_from_file
    filter_on=filter_on)
  File "/d/users/brook/.conda/envs/py37/lib/python3.7/site-packages/astrocats/catalog/entry.py", line 324, in _load_data_from_json
    filter_on=filter_on)
  File "/d/users/brook/.conda/envs/py37/lib/python3.7/site-packages/astrocats/catalog/entry.py", line 480, in _convert_odict_to_classes
    **vv)
TypeError: _add_cat_dict() argument after ** must be a mapping, not str

The version of astrocats I am using is 0.3.37 (I believe is the most recent one). Python==3.7.12, mosfit==1.1.8. I was fitting private data. The data is formatted according to OAC schema.
I was wondering if this issue is caused by astrocats?
Any help or suggestion on how to solve this issue will be greatly appreciated!

Thanks,
Brook

@Yanshengyu0311
Copy link

I have the same error when fitting the pravite data.

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

2 participants