Skip to content

Commit bf238ff

Browse files
author
Hanna Ruth
committed
FIX: fixed typing issue with downsample scale. When a task is loaded, integer types are loaded as np.int64. Having downsample=1 and downsampling.enabled=False caused the PMA loop to return a float64 array instead of the desired float32 array. I updated the PMA class to deal with this, but I should really be updating the loader instead.
1 parent 36ffaf7 commit bf238ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyxalign/alignment/projection_matching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def run(self, initial_shift: Optional[np.ndarray] = None) -> np.ndarray:
7070
center_of_rotation=self.projections.center_of_rotation,
7171
)
7272
if self.options.downsample.enabled:
73-
self.scale = self.options.downsample.scale
73+
self.scale = (self.options.downsample.scale).astype(int)
7474
else:
7575
self.scale = 1
7676

0 commit comments

Comments
 (0)