Skip to content

Commit

Permalink
Update segmentation.py
Browse files Browse the repository at this point in the history
Print temp_tck for debugging
  • Loading branch information
chiuhoward committed Nov 12, 2024
1 parent 4b04c5d commit 39c9396
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AFQ/tasks/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def segment(data_imap, mapping_imap,
elif streamlines.endswith(".tck.gz"):
# uncompress tck.gz to a temporary tck:
temp_tck = op.join(mkdtemp(), streamlines.replace(".gz", ""))
print(temp_tck)
with gzip.open(streamlines, 'rb') as f_in:
with open(temp_tck, 'wb') as f_out:
shutil.copyfileobj(f_in, f_out)
Expand Down

0 comments on commit 39c9396

Please sign in to comment.