Skip to content

Commit c7b7a9e

Browse files
committed
fix: resolve failing test (read-only array) for newer pandas version
1 parent 6bdee19 commit c7b7a9e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/leopard_em/pydantic_models/data_structures/particle_stack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,8 @@ def construct_image_stack(
564564
# box to be centered around the particle. Therefore, need to shift the
565565
# position half the difference between the original template size and
566566
# the extraction size.
567-
pos_y -= (box_h - h) // 2
568-
pos_x -= (box_w - w) // 2
567+
pos_y = pos_y - (box_h - h) // 2
568+
pos_x = pos_x - (box_w - w) // 2
569569

570570
pos_y = torch.tensor(pos_y, device=img.device)
571571
pos_x = torch.tensor(pos_x, device=img.device)

0 commit comments

Comments
 (0)