v1.19.0
v1.19.0 (2024-12-11)
Features
4D-Lung
Order of operations
negative_control_strategy(image, mask=mask, region=region_strategy)2. runs the__call__on thenegative_control_strategy3. which runs the__call__ofregion(image_array, mask_array)4. the result of which is used to figure out what indices of the original image to apply thetransformmethod of theNegativeControlStrategyconcrete classes to 5. only replace the region indicesimage_array[mask_indices] = transformed_values
Resource on Strategy Pattern: https://refactoring.guru/design-patterns/strategy/python/example
Co-authored-by: Katy Scott k.l.scott16@gmail.com
Refactoring
Enhance the Ruff configuration to include additional files and ignore specific PEP-8 naming conventions. Refactor the codebase by replacing os.path with pathlib, improving logging verbosity, adding type annotations, and organizing imports.
-
Bug Fixes
-
Improved error handling for image cropping and feature extraction processes, ensuring robustness and clearer logging.
-
Chores
-
Updated configuration settings to refine linting rules and file inclusions, optimizing code quality checks.
-
Incremented Pixi version across CI-CD jobs for improved performance.
-
feature-extraction: Extract-method refactor to simplify workflow, prepare for class-based feature extraction (#69,
3bcaa28)
summary: Refactor code to improve readability, logging, and type annotations while addressing various bugs and updating dependencies.
mostly extract-method refactoring to make following code flow a bit easier. - setting up to create a class for the module to save from passing around all the parameters
updates to code quality control tasks - for the most part will follow suit with med-imagetools configuration for qc - pixi run qc will run ruff format and lint on files included in ruff.toml - Enhance ruff configuration to include additional files and ignore specific PEP-8 naming conventions.
-
New Features - Introduced new functions for enhanced radiomic feature extraction:
generateNegativeControl,cropImageAndMask, andfeatureExtraction. -
Improvements - Enhanced error handling and logging for the feature extraction process. - Improved documentation and formatting in loaders for better readability.
-
Configuration Updates - Updated linting configuration to include specific files for checks and clarified linting rules with detailed comments. - Updated project version to "1.18.0" and added new dependencies for Jupyter-related packages. - Streamlined CI-CD workflow by modifying linting commands and removing unnecessary jobs.
Detailed Changes: v1.18.0...v1.19.0
