You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: