Skip to content

Commit

Permalink
Merge pull request #447 from niaid/fix/copy-zarrs-to-assets-brt-flow
Browse files Browse the repository at this point in the history
Add missing zarr asset copy
  • Loading branch information
philipmac authored Feb 7, 2024
2 parents 1f6a2e2 + a574a17 commit 752f0aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions em_workflows/brt/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,8 @@ def gen_ng_metadata(fp_in: FilePath, zarr: Path) -> Dict:
# Working fp is actually used for getting the metadata

file_path = fp_in
asset_fp = Path(f"{file_path.assets_dir}/{file_path.base}.zarr")
asset_fp = file_path.copy_to_assets_dir(fp_to_cp=Path(zarr))

utils.log("Instantiating HWZarrImages")
hw_images = HedwigZarrImages(zarr_path=zarr, read_only=False)
utils.log("Accessing first HWZarrImage")
Expand Down Expand Up @@ -514,7 +515,6 @@ def get_callback_result(callback_data: list) -> list:
return cb_data


# run_config=LocalRun(labels=[utils.get_environment()]),
@flow(
name="BRT",
flow_run_name=utils.generate_flow_run_name,
Expand Down
1 change: 1 addition & 0 deletions em_workflows/utils/neuroglancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def bioformats_gen_zarr(

cmd.extend([input_fname, output_zarr])
FilePath.run(cmd=cmd, log_file=log_fp)
return Path(output_zarr)


def zarr_build_multiscales(file_path: FilePath) -> None:
Expand Down

0 comments on commit 752f0aa

Please sign in to comment.