Skip to content

Commit

Permalink
fix: formatted info json
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Jul 1, 2024
1 parent 0205370 commit 9fe7f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neuroglancer_scripts/volume_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def nibabel_image_to_info(img,
}}""".format(num_channels=shape[3] if len(shape) >= 4 else 1,
data_type=guessed_dtype,
size=list(shape[:3]),
resolution=[vs * 1000000 for vs in voxel_sizes[:3]])
resolution=[float(vs * 1_000_000) for vs in voxel_sizes[:3]])

info = json.loads(formatted_info) # ensure well-formed JSON

Expand Down

0 comments on commit 9fe7f48

Please sign in to comment.