Skip to content

Commit

Permalink
Fix line too long
Browse files Browse the repository at this point in the history
  • Loading branch information
pchlap committed Nov 24, 2024
1 parent ff3cfdd commit 00e4076
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pydicer/visualise/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ def visualise(
for f in struct_dir.glob("*.nii.gz")
}

masks = {k: masks[k] for k in masks if masks[k].GetPixelID() in render_mask_types}
masks = {
k: masks[k] for k in masks
if masks[k].GetPixelID() in render_mask_types
}

if len(masks) == 0:
logger.warning(
Expand Down Expand Up @@ -283,7 +286,10 @@ def visualise(
f.name.replace(".nii.gz", ""): sitk.ReadImage(str(f))
for f in struct_dir.glob("*.nii.gz")
}
masks = {k: masks[k] for k in masks if masks[k].GetPixelID() in render_mask_types}
masks = {
k: masks[k] for k in masks
if masks[k].GetPixelID() in render_mask_types
}

if len(masks) == 0:
logger.warning(
Expand Down

0 comments on commit 00e4076

Please sign in to comment.