We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bdee19 commit c7b7a9eCopy full SHA for c7b7a9e
1 file changed
src/leopard_em/pydantic_models/data_structures/particle_stack.py
@@ -564,8 +564,8 @@ def construct_image_stack(
564
# box to be centered around the particle. Therefore, need to shift the
565
# position half the difference between the original template size and
566
# the extraction size.
567
- pos_y -= (box_h - h) // 2
568
- pos_x -= (box_w - w) // 2
+ pos_y = pos_y - (box_h - h) // 2
+ pos_x = pos_x - (box_w - w) // 2
569
570
pos_y = torch.tensor(pos_y, device=img.device)
571
pos_x = torch.tensor(pos_x, device=img.device)
0 commit comments