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 18 forks source link

Snap removal #67

Closed ttricco closed 9 months ago

ttricco commented 9 months ago

Remove _snap, which previously rounded x/y limits when they were within 1e-4 of an integer value.

If the min/max limits were both within 1e-4 of the same integer, then they would round to the same value. This means the width would be 0, causing several issues, such as divide by zero errors.

Fixes #66.