Skip to content

Commit 9175d50

Browse files
KumoLiuYu0610
authored andcommitted
Fix incorrectly size compute in auto3dseg analyzer (Project-MONAI#7374)
Fixes Project-MONAI#7222 ### Description remove int convert here. https://github.com/Project-MONAI/MONAI/blob/8fa6931b14ba9617a595fff1d396ac44cc82e207/monai/auto3dseg/analyzer.py#L259 ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: YunLiu <[email protected]> Signed-off-by: Yu0610 <[email protected]>
1 parent 5d77599 commit 9175d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/auto3dseg/analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def __call__(self, data):
256256
)
257257

258258
report[ImageStatsKeys.SIZEMM] = [
259-
int(a * b) for a, b in zip(report[ImageStatsKeys.SHAPE][0], report[ImageStatsKeys.SPACING])
259+
a * b for a, b in zip(report[ImageStatsKeys.SHAPE][0], report[ImageStatsKeys.SPACING])
260260
]
261261

262262
report[ImageStatsKeys.INTENSITY] = [

0 commit comments

Comments
 (0)