Published December 31, 2023
| Version v1.2.3
Software
Open
ttricco/sarracen: v1.2.3
Authors/Creators
Description
Sarracen 1.2.3 Release Notes
New Features
centre_of_mass()has been added to SarracenDataFrame. It returns the [x, y, z] point of the centre of mass.- Rotations can be performed around the centre of mass by specifiying
rot_origin='com'. read_phantom()will create amasscolumn if multiple particle species (itypes) are present so that different particles resolve the correct mass. If there is only a single particle species, then it follows previous behaviour of addingmasstoparams.
Bug fixes:
read_phantom()has reliable detection of default int and real precision (for 32-bit and 64-bit precision).- Slicing and filtering operations on a SarracenDataFrame (e.g., drop, loc, etc) will correctly determine if any special columns are present (x, y, z, mass, smoothing length, density). Previously it would inherit values from the parent data frame, which would not make sense if any of those columns were filtered out.
calc_density()in SarracenDataFrame no longer assumesparamscontainsmass.- Numba deprecation warning with kernels has been resolved.
- Interpolation no longer tries to round x/y limits when they are within 1.0e-4 of an integer. This rounding was problematic when the x/y bounds were smaller than this.
Deprecations
- The default value for
rot_origin=when rendering and interpolation is currently the midpoint of the x/y/z bounds. This is deprecated and will change to [x, y, z] = [0, 0, 0] in a future release.
Files
ttricco/sarracen-v1.2.3.zip
Files
(2.7 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:148a1e061b60d4794da604a7be189ae2
|
2.7 MB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/ttricco/sarracen/tree/v1.2.3 (URL)