Skip to content

Conversation

@af-a
Copy link
Contributor

@af-a af-a commented Jun 27, 2023

Description

Running recon-surf.sh when the BF-corrected image does not already exist currently fails due to the following error from N4_bias_correct.py:

Traceback (most recent call last):
  File "/FastSurfer/recon_surf//N4_bias_correct.py", line 27, in <module>
    import image_io as iio
  File "/FastSurfer/recon_surf/image_io.py", line 106, in <module>
    ) -> Union[sitk.Image, tuple[sitk.Image, Any]]:
TypeError: 'type' object is not subscriptable
Command exited with non-zero status 1

This PR fixes the bug which causes this (which seems to have been introduced in #308) in the function declaration: using the typing module's Tuple instead of tuple.

Tested on one 1mm case.

@m-reuter m-reuter merged commit e52b22f into Deep-MI:dev Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants