Skip to content

Commit

Permalink
Merge pull request #215 from funkelab/snapshot_attr_fix
Browse files Browse the repository at this point in the history
fix snapshot node attribute: resolution -> voxel_size
  • Loading branch information
pattonw authored Dec 10, 2024
2 parents 5b595e9 + 0e5aa79 commit dee6fcc
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 dee6fcc

Please sign in to comment.