Skip to content

Commit 75275c3

Browse files
committed
load only x value of voxel size
1 parent 4e7900a commit 75275c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/membrain_pick/mesh_projections/mesh_conversion_wrappers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def mesh_for_tomo_mb_folder(
161161
if tomo is None:
162162
tomo = load_tomogram(tomo_file)
163163
input_pixel_size = (
164-
tomo.voxel_size if input_pixel_size is None else input_pixel_size
164+
tomo.voxel_size.x if input_pixel_size is None else input_pixel_size
165165
)
166166
tomo = tomo.data
167167
if tomo_token is None:
@@ -215,7 +215,7 @@ def mesh_for_single_mb_file(
215215
if tomo is None:
216216
tomo = load_tomogram(tomo_file)
217217
input_pixel_size = (
218-
tomo.voxel_size if input_pixel_size is None else input_pixel_size
218+
tomo.voxel_size.x if input_pixel_size is None else input_pixel_size
219219
)
220220
tomo = tomo.data
221221
if tomo_token is None:

0 commit comments

Comments
 (0)