Skip to content

Commit

Permalink
Propagate chunk sizes from sim to msim and modify gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
m-albert committed Dec 15, 2023
1 parent aa9f510 commit c01ce06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,4 @@ site/

notebooks/fused*
notebooks/Grid*
notebooks/*.zarr
5 changes: 3 additions & 2 deletions src/multiview_stitcher/msi_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def get_sim_from_msim(msim, scale="scale0"):
return sim


def get_msim_from_sim(sim, scale_factors=None):
def get_msim_from_sim(sim, scale_factors=None, chunks=None):
"""
highest scale sim from msim with affine transforms
"""
Expand Down Expand Up @@ -208,7 +208,8 @@ def get_msim_from_sim(sim, scale_factors=None):
if scale_factors is None:
scale_factors = get_optimal_multi_scale_factors_from_sim(sim)

chunks = {dim: 256 if dim not in ["c", "t"] else 1 for dim in sim.dims}
if chunks is not None:
chunks = {dim: 256 if dim not in ["c", "t"] else 1 for dim in sim.dims}

msim = msi.to_multiscale(
sim,
Expand Down

0 comments on commit c01ce06

Please sign in to comment.