ttricco / sarracen

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

SarracenDataFrame slicing bugfix #23

Closed AndrewHarris709 closed 2 years ago

AndrewHarris709 commented 2 years ago

Adds an _constructor private method to SarracenDataFrame. This ensures that when a SarracenDataFrame is sliced or manipulated in a way that doesn't return a Series, a SarracenDataFrame is returned instead.

With this fix, particle data can now be manipulated by the user before plotting, without losing any vital information.