Skip to content

Commit

Permalink
except
Browse files Browse the repository at this point in the history
  • Loading branch information
tathey1 committed Nov 8, 2023
1 parent c3c5ecb commit 57a1888
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion experiments/BrainLine/scripts/upload_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from pathlib import Path
import os
from tqdm import tqdm
from cloudvolume import EmptyVolumeException

local_vol = CloudVolume("precomputed://file:///mnt/data/Neuroglancer_Data/2023_04_10/MS12/axon_mask")

Expand Down Expand Up @@ -61,6 +62,9 @@
corners = _get_corners(local_vol.shape, local_vol.chunk_size)

for corner in tqdm(corners):
s3_vol[corner[0][0]:corner[1][0],corner[0][1]:corner[1][1],corner[0][2]:corner[1][2]] = local_vol[corner[0][0]:corner[1][0],corner[0][1]:corner[1][1],corner[0][2]:corner[1][2]]
try:
s3_vol[corner[0][0]:corner[1][0],corner[0][1]:corner[1][1],corner[0][2]:corner[1][2]] = local_vol[corner[0][0]:corner[1][0],corner[0][1]:corner[1][1],corner[0][2]:corner[1][2]]
except EmptyVolumeException:
pass


0 comments on commit 57a1888

Please sign in to comment.