Skip to content

0.12.0b2

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Mar 10:19
· 14 commits to main since this release

Bug fixes

  • Square image handling in scale_to_max_width: Fixed a crash when downscaling square images. The previous dimension computation used np.argmax/np.argmin to identify the long and short axes, which both return index 0 for a square image, leaving one dimension as None. Replaced with a uniform scale factor approach that works correctly for all aspect ratios. (#307)

Internal refactoring

  • Split the monolithic insitupy/containers/dataclasses.py into 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