You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When not fitting for period (per) and transit midtime (t0), the plotting in s30 will fail raising the following error:
t_hr = phase_hr * p.per[0] + p.t0[0] + data.toffset
AttributeError: 'FormatParams' object has no attribute 'per'
I should replace that with the following:
try:
t_hr = phase_hr * p.per[0] + p.t0[0] + data.toffset
except AttributeError:
# Set a custom value for 'per' attribute
per_custom = [per_custom_value]
t0_custom = [t0_custom_value]
t_hr = phase_hr * per_custom[0] + t0_custom[0] + data.toffset
the per_custom_value and t0_custom_value should come for the fit_par file, as these values were set by the user and are set to be fixed if they are not free parameters.
The text was updated successfully, but these errors were encountered:
When not fitting for period (per) and transit midtime (t0), the plotting in s30 will fail raising the following error:
I should replace that with the following:
the per_custom_value and t0_custom_value should come for the fit_par file, as these values were set by the user and are set to be fixed if they are not free parameters.
The text was updated successfully, but these errors were encountered: