Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions fink_utils/sso/spins.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def func_sshg1g2(pha, h, g1, g2, alpha0, delta0, period, a_b, a_c, phi0):
return func1 + func2


def sfhg1g2_multiple(phas, g1, g2, *args):
def func_sfhg1g2(phas, g1, g2, *args):
"""HG1G2 model in the case of simultaneous fit

Parameters
Expand Down Expand Up @@ -386,7 +386,7 @@ def sfhg1g2_error_fun(params, phas, mags):
Reduced magnitude, that is m_obs - 5 * np.log10('Dobs' * 'Dhelio')
Sorted by time.
"""
return sfhg1g2_multiple(phas, params[0], params[1], params[2:]) - mags
return func_sfhg1g2(phas, params[0], params[1], params[2:]) - mags


def color_correction_to_V(): # noqa: N802
Expand Down Expand Up @@ -1168,6 +1168,9 @@ def fit_sfhg1g2(

outdics.update(outdic)

# only if both bands converged
outdics["fit"] = 0

return outdics


Expand Down