TotalSegmentator icon indicating copy to clipboard operation
TotalSegmentator copied to clipboard

Readme example results in `TypeError`

Open ancestor-mithril opened this issue 10 months ago • 1 comments

The example in documentation results in an error with TotalSegmentator==2.1.0

import nibabel as nib
from totalsegmentator.python_api import totalsegmentator

if __name__ == "__main__":
    # option 2: provide input and output as nifti image objects
    input_img = nib.load(input_path)
    output_img = totalsegmentator(input_img)
TypeError: totalsegmentator() missing 1 required positional argument: 'output'

ancestor-mithril avatar Apr 09 '24 09:04 ancestor-mithril

This should be fixed in the latest master branch:

pip install git+https://github.com/wasserth/TotalSegmentator.git

wasserth avatar Apr 15 '24 08:04 wasserth