-
Notifications
You must be signed in to change notification settings - Fork 46
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
modelFitEMCEE error: local variable 'modelset' referenced before assignment #164
Comments
Hi Adam, It looks like I didnt attach the error text to my original message. Here it is:- from astropy.io import fits (<Quantity 2655.2141656 K>, <Quantity 100. K>) sp = splat.getSpectrum(shortname='0415-0935')[0] Retrieving 1 file emcee_result = spmod.modelFitEMCEE(sp,t0=teff,g0=5.0,fit_metallicity=False,model='BTSettl2008',nwalkers=50,nsamples=500,output='test_modelfitEMCEE-1') UnboundLocalError Traceback (most recent call last) ~/.local/lib/python3.8/site-packages/splat/model.py in modelFitEMCEE(specin, mset, instrument, initial, nofit, nwalkers, nsamples, threads, burn, propose_scale, verbose, **kwargs) UnboundLocalError: local variable 'modelset' referenced before assignment |
Hi Adam,
I hit a problem when running the modelFitEMCEE routine. See the attached extract from a Jupyter notebook for details. Hope this is an easy fix!
Cheers,
Dave.
The text was updated successfully, but these errors were encountered: