ttricco / sarracen

A Python library for smoothed particle hydrodynamics (SPH) analysis and visualization.
https://sarracen.readthedocs.io
GNU General Public License v3.0
15 stars 17 forks source link

Azimuthal averaging with density #89

Open ttricco opened 3 months ago

ttricco commented 3 months ago

Azimuthal averaging of density doesn't work when density isn't an explicit column in the SarracenDataFrame.

In the case of rendering / interpolation, it will construct a numpy array of the density using the smoothing length and particle mass.

However, in this case, we use groupby on the dataframe to sort particles into their radial bins, and this approach won't work with a reconstructed numpy array of density.

Related to #87