Skip to content

Commit ea33a4d

Browse files
sfHG1G2: update outdic (#179)
1 parent 97cf140 commit ea33a4d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

fink_utils/sso/spins.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def func_sshg1g2(pha, h, g1, g2, alpha0, delta0, period, a_b, a_c, phi0):
344344
return func1 + func2
345345

346346

347-
def sfhg1g2_multiple(phas, g1, g2, *args):
347+
def func_sfhg1g2(phas, g1, g2, *args):
348348
"""HG1G2 model in the case of simultaneous fit
349349
350350
Parameters
@@ -386,7 +386,7 @@ def sfhg1g2_error_fun(params, phas, mags):
386386
Reduced magnitude, that is m_obs - 5 * np.log10('Dobs' * 'Dhelio')
387387
Sorted by time.
388388
"""
389-
return sfhg1g2_multiple(phas, params[0], params[1], params[2:]) - mags
389+
return func_sfhg1g2(phas, params[0], params[1], params[2:]) - mags
390390

391391

392392
def color_correction_to_V(): # noqa: N802
@@ -1168,6 +1168,9 @@ def fit_sfhg1g2(
11681168

11691169
outdics.update(outdic)
11701170

1171+
# only if both bands converged
1172+
outdics["fit"] = 0
1173+
11711174
return outdics
11721175

11731176

0 commit comments

Comments
 (0)