Skip to content

stroke #28

@joc19008

Description

@joc19008

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions