In the function norm_by_quarter, the order of first median normalizing the flux, then median normalizing the ferr results in dividing the ferr by exactly 1.0. If you reverse the order and first normalize ferr by the median of flux -- then normalize flux by the median of flux -- then the ferr is properly normalized, which effects the weights inside the fitting procedure.
In the function
norm_by_quarter
, the order of first median normalizing theflux
, then median normalizing theferr
results in dividing theferr
by exactly 1.0. If you reverse the order and first normalizeferr
by the median offlux
-- then normalizeflux
by the median offlux
-- then theferr
is properly normalized, which effects the weights inside the fitting procedure.