Skip to content

Commit

Permalink
element wise volume alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Miro-Astore committed Aug 20, 2024
1 parent 5572d97 commit 94b07dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cryo_challenge/_preprocessing/align_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,10 @@ def align_submission(
volumes (torch.Tensor): aligned submission volumes
"""
for i in range(len(volumes)):
print('aligning ' + str(i) + 'th volume' )
obj_vol = volumes[i].numpy().astype(np.float32)
obj_vol = volumes[i].numpy().astype(np.float32).copy()

obj_vol = Volume(obj_vol / obj_vol.sum())
ref_vol = Volume(ref_volume / ref_volume.sum())
ref_vol = Volume(ref_volume.copy() / ref_volume.sum())

_, R_est = align_BO(
ref_vol,
Expand Down

0 comments on commit 94b07dd

Please sign in to comment.