Commit dff352f
## Summary
- Fixed incorrect minus sign in `rotate_range` parameter documentation
- The documentation incorrectly showed `uniform[-rotate_range[i][0],
rotate_range[i][1])`
- The actual implementation uses `uniform(f[0], f[1])` without negation
on the first parameter
- Fixed across 7 locations in both array and dictionary transforms
## Changes
- Updated documentation in `monai/transforms/spatial/array.py`:
- RandAffineGrid (line 1851)
- RandAffine (line 2389)
- Rand2DElastic (line 2659)
- Rand3DElastic (line 2827)
- Updated documentation in `monai/transforms/spatial/dictionary.py`:
- RandAffined (line 1064)
- Rand2DElasticd (line 1249)
- Rand3DElasticd (line 1399)
## Types of changes
- [x] Documentation update
Fixes #8340
Signed-off-by: li.yunhao <li.yunhao@foxmail.com>
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
1 parent 8c0b5ee commit dff352f
2 files changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1848 | 1848 | | |
1849 | 1849 | | |
1850 | 1850 | | |
1851 | | - | |
| 1851 | + | |
1852 | 1852 | | |
1853 | 1853 | | |
1854 | 1854 | | |
| |||
2386 | 2386 | | |
2387 | 2387 | | |
2388 | 2388 | | |
2389 | | - | |
| 2389 | + | |
2390 | 2390 | | |
2391 | 2391 | | |
2392 | 2392 | | |
| |||
2656 | 2656 | | |
2657 | 2657 | | |
2658 | 2658 | | |
2659 | | - | |
| 2659 | + | |
2660 | 2660 | | |
2661 | 2661 | | |
2662 | 2662 | | |
| |||
2824 | 2824 | | |
2825 | 2825 | | |
2826 | 2826 | | |
2827 | | - | |
| 2827 | + | |
2828 | 2828 | | |
2829 | 2829 | | |
2830 | 2830 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1061 | 1061 | | |
1062 | 1062 | | |
1063 | 1063 | | |
1064 | | - | |
| 1064 | + | |
1065 | 1065 | | |
1066 | 1066 | | |
1067 | 1067 | | |
| |||
1246 | 1246 | | |
1247 | 1247 | | |
1248 | 1248 | | |
1249 | | - | |
| 1249 | + | |
1250 | 1250 | | |
1251 | 1251 | | |
1252 | 1252 | | |
| |||
1396 | 1396 | | |
1397 | 1397 | | |
1398 | 1398 | | |
1399 | | - | |
| 1399 | + | |
1400 | 1400 | | |
1401 | 1401 | | |
1402 | 1402 | | |
| |||
0 commit comments