The Te_pdf array created from running analysis.error_prop.fluxes_derived_prop has shape (4,1000). When passed into analysis.temp_metallicity_calc.metallicity_calculation, n_sample is incorrectly set to the length of the T_e array (4,) instead of the shape (4,1000). Array shape mismatch when trying to assign det3 (an array the length of n_sample) to T_e.
The Te_pdf array created from running analysis.error_prop.fluxes_derived_prop has shape (4,1000). When passed into analysis.temp_metallicity_calc.metallicity_calculation, n_sample is incorrectly set to the length of the T_e array (4,) instead of the shape (4,1000). Array shape mismatch when trying to assign det3 (an array the length of n_sample) to T_e.