Skip to content

Commit

Permalink
fix(nii2dcm): fixed check for the number of dicom (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-parida12 authored Apr 13, 2022
1 parent cad710f commit c3ec65d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nekton/nii2dcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def _check_all_dicoms(self, dcmfiles: List[Path], seg: np.ndarray) -> List[Path]
Returns:
List[Path]: sorted list of dicoms based on the order
"""
assert seg.shape[-1] == len(
dcmfiles
assert len(dcmfiles) in list(
seg.shape
), f"""Need 1 DICOM per slice of NifTi;
Found {len(dcmfiles)} DICOMS for {len(seg)} NifTi slice"""

Expand Down

0 comments on commit c3ec65d

Please sign in to comment.