Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wasserth committed Jan 27, 2025
1 parent b6f6b2f commit 421da77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions totalsegmentator/bin/totalseg_evans_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ async def run_models_parallel(ct_path, tmp_dir, logger, host="local"):
st = time.time()

if host == "local":
img1, img2 = await asyncio.gather( # this needs to be inside of asnyc func with await
img1, img2 = await asyncio.gather( # this needs to be inside of async func with await
run_totalsegmentator_async(ct_img, "totalseg_body.nii.gz", f"-ml -ns 1 -rs {rois_str}"),
run_totalsegmentator_async(ct_img, "totalseg_ventricle_parts.nii.gz", f"-ml -ns 1 -ta ventricle_parts"),
run_totalsegmentator_async(ct_img, "totalseg_ventricle_parts.nii.gz", "-ml -ns 1 -ta ventricle_parts"),
)
elif host == "modal":
import modal
Expand Down

0 comments on commit 421da77

Please sign in to comment.