Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

methods don't update #165

Open
rpoleski opened this issue Jan 18, 2025 · 0 comments
Open

methods don't update #165

rpoleski opened this issue Jan 18, 2025 · 0 comments
Labels

Comments

@rpoleski
Copy link
Owner

There's a bug in v3 MagnificationCurve - methods don't update:

    t_vec = np.array([3.5, 2., 1., 0.5, 0.])
    params_0 = mm.ModelParameters({'t_0': 0., 'u_0': 0.5, 't_E': 1., 'rho': 1.})
    mag_curve_0 = mm.MagnificationCurve(times=t_vec, parameters=params_0)
    mag_curve_0.set_magnification_methods([-5., 'finite_source_uniform_Lee09', 5.], 'point_source')
    print(mag_curve_0.methods_indices)
    mag_curve_0.set_magnification_methods([-5., 'finite_source_uniform_WittMao94', 5.], 'point_source')
    print(mag_curve_0.methods_indices)

Returns:

{'finite_source_uniform_Lee09': array([ True,  True,  True,  True,  True])}
{'finite_source_uniform_Lee09': array([ True,  True,  True,  True,  True])}

Expected:

{'finite_source_uniform_Lee09': array([ True,  True,  True,  True,  True])}
{'finite_source_uniform_WittMao94': array([ True,  True,  True,  True,  True])}

@jenniferyee

@rpoleski rpoleski added the bug label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant