Skip to content

Commit

Permalink
Add grid_shape parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
tibuch committed Jul 16, 2024
1 parent 1082ed6 commit b6ed60d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/s01_parsing_sbem_acquisition/parameter_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class AcquisitionConfig(BaseModel):
sbem_root_dir: str = ""
acquisition: str = "run_0"
tile_grid: str = "g0001"
grid_shape: tuple[int, int] = (32, 42)
thickness: float = 25
resolution_xy: float = 11

Expand Down
3 changes: 3 additions & 0 deletions source/s01_parsing_sbem_acquisition/s01_parse_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def parse_data(
sbem_root_dir: str,
acquisition: str,
tile_grid: str,
grid_shape: tuple[int, int],
thickness: float,
resolution_xy: float,
start_section: int,
Expand Down Expand Up @@ -50,6 +51,7 @@ def parse_data(
acquisition=acquisition,
section_num=tile_spec["z"],
tile_grid_num=tile_grid_num,
grid_shape=grid_shape,
thickness=thickness,
tile_height=tile_spec["tile_height"],
tile_width=tile_spec["tile_width"],
Expand Down Expand Up @@ -100,6 +102,7 @@ def main(
sbem_root_dir=acquisition_conf.sbem_root_dir,
acquisition=acquisition_conf.acquisition,
tile_grid=acquisition_conf.tile_grid,
grid_shape=acquisition_conf.grid_shape,
thickness=acquisition_conf.thickness,
resolution_xy=acquisition_conf.resolution_xy,
start_section=start_section,
Expand Down

0 comments on commit b6ed60d

Please sign in to comment.