Skip to content

Commit

Permalink
another file not found fix
Browse files Browse the repository at this point in the history
  • Loading branch information
36000 committed Aug 31, 2020
1 parent 2d1ffa2 commit 4db8232
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AFQ/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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')
Expand All @@ -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
Expand Down

0 comments on commit 4db8232

Please sign in to comment.