You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cl values found when initialising an extended salt 2 source cause the clbase values to reach infinity, breaking the Spline interpolation used in the calculation of flux, causing flux values to all return NaN.
Ah, python three unicode, breaking everything yet again. The amount of
grief it caused me when I was trying to fix PolyChord is insane. Is there a
simple work around that I could employ in sncosmo at the moment, or are you
planning on putting a patch out and know the fix?
Activity
kbarbary commentedon Jun 23, 2016
I think this is a subtle Python 3 unicode bug that has completely broken all SALT2 models. 😮
Arising from the fact that in Python 3:
At the very least, the extinction law version is being set incorrectly to v0 instead of v1 in
SALT2Source._set_colorlaw_from_file
.I've been avoiding using online data (e.g., the SALT2 data files) in tests, but this is evidence that it is really needed.
Samreay commentedon Jun 23, 2016
Ah, python three unicode, breaking everything yet again. The amount of
grief it caused me when I was trying to fix PolyChord is insane. Is there a
simple work around that I could employ in sncosmo at the moment, or are you
planning on putting a patch out and know the fix?
Cheers
On Wed, Jun 22, 2016 at 5:06 PM, Kyle Barbary notifications@github.com
wrote:
kbarbary commentedon Jun 23, 2016
fix sncosmo#138
Merge pull request #140 from kbarbary/fix-138
kbarbary commentedon Jun 23, 2016
Can you give master a try now?
Samreay commentedon Jun 23, 2016
Awesome, thanks Kyle
On Thu, Jun 23, 2016 at 1:33 PM, Kyle Barbary notifications@github.com
wrote:
Samreay commentedon Jun 23, 2016
Im reinstalling it from git now. Will check the extended model and report back.
Samreay commentedon Jun 23, 2016
Alright, done a basic test, and it didnt fall over like it used to! Cheers