Closed robelgeda closed 3 years ago
This is because the input model was init with quantities:
sersic_model = models.Sersic2D(
amplitude=1,
r_eff=25,
n=3.7,
x_0=mid,
y_0=mid,
ellip=get_source_ellip(row),
theta=get_source_theta(row),
bounds = {
'amplitude': (0., None),
'r_eff': (0, None),
'n': (0, 10),
'ellip': (0, 1),
'theta': (-2*np.pi, 2*np.pi),
'x_0': (mid-d, mid+d),
'y_0': (mid-d, mid+d),
},
)
To fix change get_source_theta(row)
-> get_source_theta(row).value