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

Bug fix when separate_types='all' but there are no sink particles #63

Closed ttricco closed 1 year ago

ttricco commented 1 year ago

read_phantom() implicitly assumes that there are sink particles when separate_types='all'. This creates an (empty) SarracenDataFrame for the sink particles, which is unnecessary.