Skip to content

Commit c0b7b6f

Browse files
committed
Initial model size should be read from header
1 parent c02c9da commit c0b7b6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/murfey/server/feedback.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,9 +1161,9 @@ def _resize_intial_model(
11611161
env: Dict[str, str],
11621162
) -> None:
11631163
with mrcfile.open(input_path) as input_mrc:
1164-
input_size_x = input_mrc.nx
1165-
input_size_y = input_mrc.ny
1166-
input_size_z = input_mrc.nz
1164+
input_size_x = input_mrc.header.nx
1165+
input_size_y = input_mrc.header.ny
1166+
input_size_z = input_mrc.header.nz
11671167
if executables.get("clip") and not input_size_x == input_size_y == input_size_z:
11681168
# If the initial model is not a cube, do some padding
11691169
clip_proc = subprocess.run(

0 commit comments

Comments
 (0)