Skip to content

Commit

Permalink
fix: rollback efforts to avoid empty EM for test crops
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoadesScholar committed Feb 7, 2025
1 parent 7fb49c1 commit 40845b4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/cellmap_segmentation_challenge/cli/fetch_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,10 @@ def fetch_data_cli(
current_pad = padding
if isinstance(crop.gt_source, TestCropRow):
starts = crop.gt_source.translation
starts = tuple(
(s // vs) * vs
for s, vs in zip(starts, crop.gt_source.voxel_size)
)
# starts = tuple(
# (s // vs) * vs
# for s, vs in zip(starts, crop.gt_source.voxel_size)
# )
stops = tuple(
start + size * vs
for start, size, vs in zip(
Expand All @@ -360,13 +360,13 @@ def fetch_data_cli(
dims=array.dims,
coords=coords,
),
force_nonempty=none_yet,
# force_nonempty=none_yet,
)
else:
slices = subset_to_slice(
array,
crop_multiscale_group["s0"],
force_nonempty=none_yet,
# force_nonempty=none_yet,
)
slices_padded = tuple(
slice(
Expand All @@ -393,7 +393,7 @@ def fetch_data_cli(
)
em_group_inventory += (f"{key}/.zarray",)
# em_group_inventory += (".zattrs",)
assert not none_yet, "No EM data was found for any resolution level."
# assert not none_yet, "No EM data was found for any resolution level."
log.info(
f"Preparing to fetch {len(em_group_inventory)} files from {em_source_url}."
)
Expand Down

0 comments on commit 40845b4

Please sign in to comment.