Skip to content

Commit 62f738b

Browse files
committed
Fixes metadata dropping
Fixes metadata-dropping bug by implementing the src/convert_to_dst_type round-trip. Fixes isort error by re-ordering imports in transforms/__init__.py. Signed-off-by: karllandheer <karllandheer@gmail.com>
1 parent 32290e6 commit 62f738b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

monai/transforms/intensity/array.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,8 @@ def __call__(self, img: NdarrayOrTensor, randomize: bool = True) -> NdarrayOrTen
283283

284284
img, *_ = convert_to_dst_type(img, dst=src, dtype=self.dtype)
285285
return img
286-
<<<<<<< HEAD
287286

288287

289-
290-
=======
291-
292-
293-
294-
>>>>>>> 83d8ad52 (Fixes metadata dropping)
295288
class RandRicianNoise(RandomizableTransform):
296289
"""
297290
Add Rician noise to image.

0 commit comments

Comments
 (0)