AGBV / YASF

Yet Another Scattering Framework python implementation
https://agbv.github.io/YASF/
MIT License
0 stars 0 forks source link

Intensity dimension off for phase function calculation for single particle #31

Closed aetherspritee closed 6 months ago

aetherspritee commented 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.

aetherspritee commented 6 months ago

For some reason, k_medium was a pandas Series instead of a numpy array, no idea why, just checking type and adjusted if necessary