Skip to content

Commit

Permalink
Fix scale metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Apr 29, 2024
1 parent 7645fe8 commit 95381c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/stack_to_chunk/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def add_full_res_data(
multiscales[0]["datasets"].append(
{
"path": "0",
"coordinateTransformations": [{"type": "scale", "scale": [1, 1, 1]}],
"coordinateTransformations": [{"type": "scale", "scale": list(self._voxel_size)}],
}
)

Expand Down
2 changes: 1 addition & 1 deletion src/stack_to_chunk/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_workflow(tmp_path: Path, arr: da.Array) -> None:
"datasets": [
{
"coordinateTransformations": [
{"scale": [1, 1, 1], "type": "scale"}
{"scale": [3, 4, 5], "type": "scale"}
],
"path": "0",
}
Expand Down

0 comments on commit 95381c3

Please sign in to comment.