From 4db8232bd28e447bc83d3c01ef65540edad6494a Mon Sep 17 00:00:00 2001 From: John K Date: Thu, 27 Aug 2020 10:44:40 -0700 Subject: [PATCH] another file not found fix --- AFQ/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AFQ/api.py b/AFQ/api.py index 485714473..1eef01d9d 100644 --- a/AFQ/api.py +++ b/AFQ/api.py @@ -1083,7 +1083,7 @@ def _export_rois(self, row): row, f'_desc-ROI-{bundle}-{ii + 1}-{inclusion}.nii.gz')) - fname = op.join(fname[0], rois_dir, fname[1]) + fname = op.join(rois_dir, fname[1]) if not op.exists(fname): warped_roi = auv.patch_up_roi( @@ -1294,7 +1294,7 @@ def _viz_ROIs(self, row, include_track=True, include_seg=True)) - fname = op.join(fname[0], roi_dir, fname[1]) + fname = op.join(roi_dir, fname[1]) self.viz.create_gif(figure, fname) else: roi_dir = op.join(row['results_dir'], 'viz_bundles') @@ -1307,7 +1307,7 @@ def _viz_ROIs(self, row, include_track=True, include_seg=True)) - fname = op.join(fname[0], roi_dir, fname[1]) + fname = op.join(roi_dir, fname[1]) figure.write_html(fname) row['timing']['Visualization'] =\ row['timing']['Visualization'] + time() - start_time