Closed aetherspritee closed 6 months ago
self.phase_function_3d = ( intensity * 4 * np.pi / np.power(np.abs(self.simulation.parameters.k_medium), 2) / self.c_sca[np.newaxis, :] )
throws: ValueError: Length of values (7200) does not match length of index (13) Both k_medium, and c_sca have the correct dimension, 13 being the number of wavelengths used. Intensity is off with 7200. Need to investigate further and will update.
ValueError: Length of values (7200) does not match length of index (13)
k_medium
c_sca
For some reason, k_medium was a pandas Series instead of a numpy array, no idea why, just checking type and adjusted if necessary
throws:
ValueError: Length of values (7200) does not match length of index (13)
Bothk_medium
, andc_sca
have the correct dimension, 13 being the number of wavelengths used. Intensity is off with 7200. Need to investigate further and will update.