Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove loading of npz for centerline #34

Closed
jcohenadad opened this issue Jun 29, 2023 · 1 comment
Closed

Remove loading of npz for centerline #34

jcohenadad opened this issue Jun 29, 2023 · 1 comment
Assignees

Comments

@jcohenadad
Copy link
Member

Remove this:

# if centerline exists, we load it, if not, we compute it
if os.path.isfile(fname_centerline + '.npz') and not regenerate:
print("Centerline for " + subject_name + " exists and will not be recomputed!")
centerline = Centerline(fname = fname_centerline + '.npz')
else:

because we just want to regenerate it all the time-- for reliability purpose

also, we don't need to save the npz, so remove:

# if centerline exists, we load it, if not, we compute it
if os.path.isfile(fname_centerline + '.npz') and not regenerate:
print("Centerline for " + subject_name + " exists and will not be recomputed!")
centerline = Centerline(fname = fname_centerline + '.npz')
else:

@NadiaBlostein
Copy link
Contributor

Fixed with PR #53 nb/preprocess_segment, last commit (0ca0cd4b469cd99bf521a6ada765bc93b85adebf)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants