@@ -124,7 +124,7 @@ def __init__(
124124 f"`pixel_size`: { pixel_size } does not match volume pixel_size: { self .vols .pixel_size } ."
125125 " Setting `pixel_size` to user provided value: {pixel_size}."
126126 )
127- self ._original_pixel_size = pixel_size
127+ self ._projection_pixel_size = pixel_size
128128
129129 # Infer the details from volume when possible.
130130 super ().__init__ (
@@ -283,7 +283,7 @@ def _projections(self, indices):
283283 im_k = self .vols [k - 1 ].project (rot_matrices = rot )
284284 im [idx_k , :, :] = im_k .asnumpy ()
285285
286- return Image (im , pixel_size = self .pixel_size )
286+ return Image (im , pixel_size = self ._projection_pixel_size )
287287
288288 @property
289289 def clean_images (self ):
@@ -329,16 +329,13 @@ def _images(self, indices, clean_images=False):
329329 return self .generation_pipeline .forward (im , indices )
330330
331331 def _apply_sim_filters (self , im , indices ):
332- # Use original pixel_size when applying filters.
333- im .pixel_size = self ._original_pixel_size
334-
335332 im = self ._apply_filters (
336333 im ,
337334 self .sim_filters ,
338335 self .filter_indices [indices ],
339336 )
340337
341- # Recover correct pixel_size
338+ # Assign correct pixel_size
342339 im .pixel_size = self .pixel_size
343340
344341 return im
0 commit comments