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

stroke #28

Open
joc19008 opened this issue May 25, 2022 · 0 comments
Open

stroke #28

joc19008 opened this issue May 25, 2022 · 0 comments

Comments

@joc19008
Copy link

Hi,

I tried to run code below from the starting kit:

from stroke.nii_slice import qc_slice
from matplotlib import pyplot as plt
plt.rcParams['figure.figsize'] = [14, 6]
qc_slice(structural.path, mask_path=mask.path, nslices=5)
plt.text(0,0, f'{sample}', bbox={'facecolor': 'white'}); # Label which subject
plt.tick_params(axis='both', labelbottom=False, labelleft=False)

but I got an error that

Loader.init(self, root_dir, data_entities, target_entities, batch_size, data_derivatives_names, target_derivatives_names, root_list, label_names)
116 self.data_shape = self.data_list[0][0].get_image().shape
117 if len(self.target_list) > 0:
--> 118 self.target_shape = self.target_list[0][0].get_image().shape
120 if root_list is not None:
121 raise (
122 NotImplementedError(
123 "Processing root list has not yet been implemented."
124 )
125 )

IndexError: tuple index out of range

But when I install the stroke using "pip install stroke", the error is gone. I think there are some issues between the stroke package and the folder (code) in the starting kit. Please check. Thanks.

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

No branches or pull requests

1 participant