Skip to content

0.6.5

Latest
Compare
Choose a tag to compare
@release-drafter release-drafter released this 06 Aug 18:30
130bcd8

🐛 Bug Fixes

Add epsilon to standard deviation normalization @msschwartz21 (#119)
Cast data to correct type in `get_image_features` @msschwartz21 (#114)

This PR fixes a bug in get_image_features. If the X data is passed in with an integer type (instead of float), the output of crop_mode='fixed' and norm=True is incorrect. In the examples below, the first image is incorrect while the second is correct.

This PR eliminates the bug by casting X data to float32 and y data to int32 to avoid incorrect use of the function.

Screen Shot 2023-01-24 at 7 34 48 PM Screen Shot 2023-01-24 at 7 34 38 PM

🧰 Maintenance

Bump version to 0.6.5 @msschwartz21 (#120)
Bump default action versions. @rossbar (#116)

Bump action versions to keep CI current, c.f. vanvalenlab/deepcell-tf#653

Reuse indexed array to avoid extra array copies. @rossbar (#115)

A minor change that should improve performance. Unfortunately NumPy isn't smart enough to cache indexing results for reuse, so each app[idx] invocation of advanced indexing is actually creating a new array (as opposed to a view), resulting in both more memory usage and additional computation time for each allocation. There should be a significant performance boost by only performing the advanced indexing operation once and reusing the result.

Not critically important - just something I noticed while reviewing #114!

Lint with ruff @rossbar (#113)

Add the ruff linter to the development workflow.

Includes basic configuration as well as some minor tweaks/improvements to pass the linter. The configuration is minimal and reflects the original pytest-pep8 configuration.

Fix failures related to expired usage patterns in dependencies @rossbar (#112)

Removes the global warnings filter for deprecation warnings in the test suite and fixes the issues that appear as a result.

Add support for Python 3.10 @rossbar (#111)

Cf. vanvalenlab/deepcell-toolbox#128

📚️ Documentation

Add references for the AA and TE scores @msschwartz21 (#118)