Closed zychen-astro closed 2 months ago
Hi Zuyi,
Thanks for bringing this to my attention -- I'll take a look and get back to you as soon as possible.
Hi Zuyi,
My apologies for not getting back to you on this. I've gone ahead and implemented your fix (and added a unit test for it), and am working on generating an updated version to include it.
Thanks again for noticing this, and for suggesting the fix!
Latest release (v1.0.2, propagated to PyPI and conda) should fix this -- if you can, test it and let me know if it works for you.
Hi Peter, thank you for the fix. I have update to v1.0.2 and verified that it works!
Hello Peter,
In
descriptions.py
:In each iteration it appends
len(functionsThisSet)
to listindices
. So if there are >=3 function sets, with withlen(functionsThisSet)=1
, the indices will be[0,1,1,...]
, which does not seem to be correct. This leads the additional components not to be fitted, and sometimes also significantly impact the results for the first two components.Previously, I modified the relevant code to be:
indices.append(indices[-1]+len(functionsThisSet))
and found it working. This issue still exists in v1.0.Could you please confirm this?
Thank you, Zuyi