Commit 470b76a
committed
Enh/bumpversion (#67)
* ENH: Add parameterized tests for ASLData input values (ld, pld, te)
* ENH: Add 'AAT2022' to parameterized atlas names for testing BrainAtlas creation
* ENH: Add GitHub Actions workflow for version bumping and publishing to PyPI
* ENH: Add bump2version configuration for automated versioning and tagging
* ENH: Remove bumpversion configuration from pyproject.toml
* ENH: Add validation for bump_type input in GitHub Actions workflow
* WIP: Add download_brain_atlas function to download Cucaracha models from a given URL
* WIP: Implement brain normalization function for image registration using ANTsPy
* ENH: Add multiple brain atlas JSON files with metadata and descriptions
* ENH: Add multiple brain atlas JSON files with metadata and descriptions
* ENH: Add unit tests for BrainAtlas class to validate atlas listing and URL retrieval
* STY: Clean up whitespace and ensure consistent formatting in download_brain_atlas function
* ENH: Remove unused kaggle_tools.py file and associated download_brain_atlas function
* ENH: Refactor brain normalization function to space normalization, improve template image handling from BrainAtlas, and enhance registration process with console status updates
* ENH: Implement space normalization function and head movement correction, refactor registration methods, and remove obsolete files
* ENH: Refactor registration tests to improve error handling and add comprehensive tests for rigid body and space normalization functions
* ENH: Add tests for error handling in setting atlas and retrieving URL and labels for known atlases
* ENH: Add LGPHCC2022 brain atlas JSON file and remove obsolete LGPHCCxxxx file
* ENH: Add AICHA2021 brain atlas JSON file and remove obsolete AICHAxxxx file
* ENH: Add AAL32024 brain atlas JSON file and remove obsolete AAL2015 file
* ENH: Add additional metadata fields to brain atlas JSON files for CAPRSC, DKA, and HA
* ENH: Add JHA2005 brain atlas JSON file and remove obsolete JHAxxxx file
* ENH: Add FCA7N2011 brain atlas JSON file and remove obsolete FCA7Nxxxx file
* ENH: Update description in MA2012 brain atlas JSON file for clarity
* ENH: Remove deprecated brain atlas JSON files and add updated versions for DKA2006, HA2003, and MA2012
* ENH: Add unit tests for BrainAtlas class functionality
* ENH: Implement ASL data registration with normalization and error handling
* ENH: Add tests for apply_transformation function to validate output and error handling
* ENH: Refactor asl_template_registration to improve normalization process and update ASLData handling
* BUG: Fix linter
* WIP: Fixing asl_template_normalization to use M0 volume first
* ENH: Refactor asl_template_registration to prioritize M0 image for normalization and improve atlas integration
* ENH: Add tests for apply_transformation with BrainAtlas reference input handling
* STY: Refactor asl_template_registration for improved readability and structure
* REF: Update import paths and replace ants.image_read with load_image for atlas image loading in asl_template_registration
* ENH: Add unit tests for rigid body registration and head movement correction
* WIP: Implement initial structure for ASLRegistration class with pipeline comments
* ENH: Improve ASL template registration by normalizing pcasl volumes and updating progress reporting
* ENH: Fix linter and merge conflicts
* ENH: Remove unused parameter from asl_template_registration and delete obsolete test file
* WIP: Update test_space_normalization_success to use actual ASLData paths and add new test for transform type Affine
* Add T2Scalar_ASLMapping to __all__ in __init__.py
* Add unit tests for MultiTE and T2Scalar ASL mapping functionalities
- Created `test_multi_te_mapping.py` to test MultiTE_ASLMapping class, including methods for setting brain masks, CBF and ATT maps, and creating maps.
- Implemented tests for error handling when ASLData is incomplete or when invalid parameters are provided.
- Added `test_te_mapping.py` for T2Scalar_ASLMapping class, verifying initialization, error handling for missing TE and PLD values, and successful T2 map creation.
- Removed the outdated `test_reconstruction.py` file to streamline test organization and improve maintainability.
* Remove unused import of asl_t2_scalar_multi_te from t2_mapping.py
* Refactor T2Scalar_ASLMapping: improve multiprocessing handling, enhance T2 fitting logic, and add unit tests for initialization and error scenarios
* DOC: Add Copilot instructions and code commit guidelines
* ENH: Implement image loading test for M0 using numpy array
* DOC: Update copilot instructions with detailed commit message guidelines and prefix patterns
* ENH: Refactor image loading and saving in tests, add error handling for invalid image inputs
* ENH: Enhance head movement correction by adding flexible reference volume selection and transformation proportion calculations
* Add T2Scalar_ASLMapping to __all__ in __init__.py
* Add unit tests for MultiTE and T2Scalar ASL mapping functionalities
- Created `test_multi_te_mapping.py` to test MultiTE_ASLMapping class, including methods for setting brain masks, CBF and ATT maps, and creating maps.
- Implemented tests for error handling when ASLData is incomplete or when invalid parameters are provided.
- Added `test_te_mapping.py` for T2Scalar_ASLMapping class, verifying initialization, error handling for missing TE and PLD values, and successful T2 map creation.
- Removed the outdated `test_reconstruction.py` file to streamline test organization and improve maintainability.
* Refactor T2Scalar_ASLMapping: improve multiprocessing handling, enhance T2 fitting logic, and add unit tests for initialization and error scenarios
* DOC: Add Copilot instructions and code commit guidelines
* Add T2Scalar_ASLMapping to __all__ in __init__.py
* Add unit tests for MultiTE and T2Scalar ASL mapping functionalities
- Created `test_multi_te_mapping.py` to test MultiTE_ASLMapping class, including methods for setting brain masks, CBF and ATT maps, and creating maps.
- Implemented tests for error handling when ASLData is incomplete or when invalid parameters are provided.
- Added `test_te_mapping.py` for T2Scalar_ASLMapping class, verifying initialization, error handling for missing TE and PLD values, and successful T2 map creation.
- Removed the outdated `test_reconstruction.py` file to streamline test organization and improve maintainability.
* Refactor T2Scalar_ASLMapping: improve multiprocessing handling, enhance T2 fitting logic, and add unit tests for initialization and error scenarios
* Add T2Scalar_ASLMapping to __all__ in __init__.py
* WIP: Add T2Scalar_ASLMapping initial implementation
* Add unit tests for MultiTE and T2Scalar ASL mapping functionalities
- Created `test_multi_te_mapping.py` to test MultiTE_ASLMapping class, including methods for setting brain masks, CBF and ATT maps, and creating maps.
- Implemented tests for error handling when ASLData is incomplete or when invalid parameters are provided.
- Added `test_te_mapping.py` for T2Scalar_ASLMapping class, verifying initialization, error handling for missing TE and PLD values, and successful T2 map creation.
- Removed the outdated `test_reconstruction.py` file to streamline test organization and improve maintainability.
* WIP: Refactor T2Scalar_ASLMapping: streamline initialization, enhance T2 fitting process, and improve error handling for TE and PLD values
* Refactor T2Scalar_ASLMapping: improve multiprocessing handling, enhance T2 fitting logic, and add unit tests for initialization and error scenarios
* Add T2Scalar_ASLMapping to __all__ in __init__.py
* WIP: Add T2Scalar_ASLMapping initial implementation
* Add unit tests for MultiTE and T2Scalar ASL mapping functionalities
- Created `test_multi_te_mapping.py` to test MultiTE_ASLMapping class, including methods for setting brain masks, CBF and ATT maps, and creating maps.
- Implemented tests for error handling when ASLData is incomplete or when invalid parameters are provided.
- Added `test_te_mapping.py` for T2Scalar_ASLMapping class, verifying initialization, error handling for missing TE and PLD values, and successful T2 map creation.
- Removed the outdated `test_reconstruction.py` file to streamline test organization and improve maintainability.
* WIP: Refactor T2Scalar_ASLMapping: streamline initialization, enhance T2 fitting process, and improve error handling for TE and PLD values
* Refactor T2Scalar_ASLMapping: improve multiprocessing handling, enhance T2 fitting logic, and add unit tests for initialization and error scenarios
* ENH: Implement image loading test for M0 using numpy array
* ENH: Add test for creating ASLData object with PCASL as numpy array and validate head movement correction output
* ENH: Implement image loading test for M0 using numpy array
* ENH: Implement image loading test for M0 using numpy array
* STY: Fix linter
* DEL: Remove copilot instructions document
* STY: Fix linter
* BUG: Update ASLData initialization in space normalization test for consistency1 parent e8dd960 commit 470b76a
File tree
9 files changed
+257
-3209
lines changed- .github/workflows
- asltk/registration
- tests
- data/brain_atlas
- registration
9 files changed
+257
-3209
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
24 | 39 | | |
25 | 40 | | |
26 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
130 | 238 | | |
131 | 239 | | |
132 | 240 | | |
| |||
0 commit comments