Skip to content

v1.19.0

Choose a tag to compare

@github-actions github-actions released this 11 Dec 21:25
· 64 commits to main since this release

v1.19.0 (2024-12-11)

Features

  • Add abstract and concrete classes for negative controls and regions (#81, c10a568)

4D-Lung

combined

Order of operations

  1. negative_control_strategy(image, mask=mask, region=region_strategy) 2. runs the __call__ on the negative_control_strategy 3. which runs the __call__ of region(image_array, mask_array) 4. the result of which is used to figure out what indices of the original image to apply the transform method of the NegativeControlStrategy concrete classes to 5. only replace the region indices image_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

  • Update Ruff configuration and refactor codebase (#68, e88e704)

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, and featureExtraction.

  • 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