lkreidberg / batman

Fast transit light curves models in Python.
http://lkreidberg.github.io/batman
GNU General Public License v3.0
82 stars 52 forks source link

m.fac = None ? step size factor not available #35

Closed 3fon3fonov closed 4 years ago

3fon3fonov commented 4 years ago

I don't really have problems with batman, but I was trying to see if I can speed-up a bit the transit light curve calculation with batman while doing an MCMC or optimization runs wit the Exo-Striker,. According to:

https://www.cfa.harvard.edu/~lkreidberg/batman/trouble.html#help-batman-is-running-really-slowly-why-is-this

you said that I can use the "fac" keyword in order to fix the step size factor.

Well, I am trying to, but it is not working. Perhaps the print screen below shows best what is going on:

TheExoStriker_with_batman

To explain, batman is working as you can see from the plot. On the right side is the Jupyter test bentch where I try to get the step size factor from a constructed model with the same params as those in the GUI frame, but it returns 'None'. The same happens behind the GUI.

Perhaps I am missing something?

Cheers, Trifon

lkreidberg commented 4 years ago

Hmm ... one question to start: which limb darkening model are you using? For linear and quadratic models, the transit light curve is calculated analytically (rather than by integration over the stellar disk), so the fac parameter isn't used. That might be why it's not defined.

3fon3fonov commented 4 years ago

Well, that explains everything. Sorry if this was obvious and I didn't realize it. For this particular run, I was using Quadratic LD. I can confirm that using "nonlinear", then the step size factor is available!

I am closing since this was never an issue.