Version 0.4.0
This minor version bump adds quite a lot of improvements and new features to PoreSpy. We are planning to release an official 1.0 in the very near future, so this release is a dress rehearsal in some ways.
🚀 New features
Added map_to_regions function for colorizing a region image by given values
Added a linear_density function based on Torquato's definition
Implemented the marching cubes algorithm for calculating surface areas
Added a function for adding boundaries to a region image
🐛 Bugfixes
- Fixed a bug in chord length distribution
- Fixed make_continuous to work properly on images with 0
- Ensure im.copy() is used throughout package
- Fixed bug in snow extraction that used blurred image to create mask
- Improved chord spacing in apply_chords
- Fixed artifacts in some of the porosimetry modes
- Changing use of squeeze on 2D images
⚠️ API changes
- Tweaking count_chords and chord_len_dist to accept bool or labeled chords
- Added bins='None' functionality for chord_length_distribution
- Added optional arguments to several functions for improved usability
🍰 Enhancements
- Added type annotations to some functions in
generators - Added an examples subfolder to ensure they are always up to date
- Increased code coverage
- Adding more network properties to SNOW extraction