Models with limb-darkening coefficient #97
Replies: 2 comments
-
Hi,
It's not clear what the problem is. Your |
Beta Was this translation helpful? Give feedback.
-
Hi, thank you so much for your quick response. I had just gotten myself with that example 25 confused on how to set the LDC. All good now. Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using MulensModel with a set of simulated data to generate light curves for single-lens microlensing events. I've created both PSPL models and finite source models, and am now looking to update them by introducing limb-darkening. I have a linear limb-darkening coefficient for each star, which is an output from the simulation itself (the code handles computation of linear limb-darkening coefficients using precomputed spline interpolates fitted to data). We cover a range of values for rho so I've successfully used the code below thus far:
if rho < 0.001:
model_finitesource.set_magnification_methods([t_1,'point_source',t_2])
elif rho <0.1:
model_finitesource.set_magnification_methods([t_1,'finite_source_uniform_Gould94',t_2])
else:
model_finitesource.set_magnification_methods([t_1,'finite_source_uniform_Lee09',t_2])
However, I'm struggling to switch to using finite_source_LD_Yoo04 (instead of finite_source_uniform_Gould94) and finite_source_LD_Lee09 (instead of finite_source_uniform_Lee09) with a pre-defined limb-darkening coefficient as a variable in the script. I'm not sure on the correct syntax of .set_magnification_methods() in my case. I tried following example_25_LD.py to adapt with my code but was unsuccessful (I get the TypeError: init() got an unexpected keyword argument 'magnification_methods' at line uniform_model = mm.Model( )
I would highly appreciate some help with implementing pre-computed LDC with the finite_source_LD_Yoo04 and finite_source_uniform_Lee09 models.
Beta Was this translation helpful? Give feedback.
All reactions