joshjchayes/TransitFit

AttributeError when recovering Coefficients and Ratios

JStMorgan opened this issue · 2 comments

Hello Josh,

Can confirm the new cache pathing has worked, but have encountered a new AttributeError in _ldtk_handler.py when recovering coefficients and ratios.

File "/mirror/scratch/jmorgan/Anaconda3/lib/python3.7/site-packages/transitfit/_ldtk_handler.py", line 127, in _extract_best_coeffs
coeff, err = self.profile_set.coeffs_p2()

AttributeError: 'LDPSet' object has no attribute 'coeffs_p2'

Is this a missing definition?

Many thanks,
Jake

Hi Jake,
Can you make sure you're using the most up to date version of ldtk, available at https://github.com/hpparvi/ldtk. It is possible that the version installed with pip is not actually the most up to date, so installing it directly from the git clone should work.

I've added an update which will ignore power2 limb darkening if you use the pypi version of ldtk