Skip to content

Commit

Permalink
fix snapshot node attribute: resolution -> voxel_size
Browse files Browse the repository at this point in the history
  • Loading branch information
yajivunev committed Aug 31, 2024
1 parent 5b595e9 commit 0e5aa79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunpowder/nodes/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def process(self, batch, request):
if not array.spec.nonspatial:
if array.spec.roi is not None:
dataset.attrs["offset"] = array.spec.roi.offset
dataset.attrs["resolution"] = self.spec[array_key].voxel_size
dataset.attrs["voxel_size"] = self.spec[array_key].voxel_size

if self.store_value_range:
dataset.attrs["value_range"] = (
Expand Down

0 comments on commit 0e5aa79

Please sign in to comment.