0.12.0b2
Pre-release
Pre-release
Bug fixes
- Square image handling in
scale_to_max_width: Fixed a crash when downscaling square images. The previous dimension computation usednp.argmax/np.argminto identify the long and short axes, which both return index 0 for a square image, leaving one dimension asNone. Replaced with a uniform scale factor approach that works correctly for all aspect ratios. (#307)
Internal refactoring
- Split the monolithic
insitupy/containers/dataclasses.pyinto individual sub-modules (cell_data.py,boundaries_data.py,multi_cell_data.py,shapes_data.py,image_data.py,spatial_units_data.py). This is a non-breaking internal change — the public API is unchanged. - Removed the legacy
insitupy/dataclasses/package and the backward-compatibility shim, which had been superseded by the new module layout. - Removed unused
insitupy/plotting/spatial_old.py.
Full Changelog: 0.12.0b1...0.12.0b2