Pylandstats

Latest version: v3.0.3

Safety actively analyzes 701442 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 6

0.6.1

- cell width and length comparisons with `numpy.isclose` to deal with imprecisions that come from float pixel resolutions (e.g., in GeoTIFF files)
- critical fix: moved pythran signatures from `compute.pythran` to `compute.py` so that the build is properly done when pip-installing

0.6.0

- flat array approach to the computation of the adjacency matrix with pythran to improve performance (plus fixes a bug on the computation of `total_edge`)
- initialization of `scipy.spatial.cKDTree` with keyword arguments `balanced_tree` and `compact_nodes` set to `False`

0.5.0

- methods plotting multiple axes return only the figure instead of a tuple with the figure and the axes
- settings module that allow configuring metrics' labels in plots, defaulting to FRAGSTATS abbreviations
- chaged CRS in tests to work with pyproj >= 2.0.0
- corrected `figlength` for `figwidth`
- warn when computing metrics that require an unmet minimum number of patches or classes (and their computation returns nan)
- all tests with `unittest.TestCase` assert methods

0.4.1

- added docstrings for `MultiLandscape`, `GradientAnalysis` and `BufferAnalysis`
- raise `ValueError` when using buffer rings around a polygon geometry

0.4.0

- implemented `SpatioTemporalBufferAnalysis` with a dedicated `plot_metric` method
- added buffer ring-wise analysis through a `buffer_rings` boolean argument in `BufferAnalysis`

0.3.1

- float equality comparations with numpy `isclose` method

Page 5 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.