Skip to content

Commit 66b5353

Browse files
committed
Rename method
1 parent c698a0a commit 66b5353

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

derotation/simulate/synthetic_data.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def integration_pipeline(
124124

125125
# -----------------------------------------------------
126126
# Create sample image with two cells
127-
self.image = self.create_sample_image_with_two_cells()
127+
self.image = self.create_sample_image_with_cells()
128128

129129
# Create the 3D image stack
130130
image_stack = self.create_image_stack()
@@ -202,7 +202,7 @@ def integration_pipeline(
202202
# Prepare the 3D image stack and the rotation angles
203203
# -----------------------------------------------------
204204

205-
def create_sample_image_with_two_cells(self) -> np.ndarray:
205+
def create_sample_image_with_cells(self) -> np.ndarray:
206206
"""Create a 2D image with two circles, one bright and one dim
207207
(optional) by default in the top center and bottom right,
208208
respectively.
@@ -379,6 +379,7 @@ def __init__(self):
379379

380380
self.debugging_plots = make_plots
381381
self.debug_plots_folder = Path("debug/")
382+
382383
def calculate_mean_images(self, image_stack: np.ndarray) -> list:
383384
# Overwrite original method as it is too bound
384385
# to signal coming from a real motor

examples/elliptical_rotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def rotate_image_stack(
2323
background_value=80,
2424
num_frames=50,
2525
)
26-
s_data.image = s_data.create_sample_image_with_two_cells()
26+
s_data.image = s_data.create_sample_image_with_cells()
2727
image_stack = s_data.create_image_stack()
2828
_, angles = s_data.create_rotation_angles(image_stack.shape)
2929

tests/test_integration/test_rotation_out_of_plane.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def rotate_image_stack(
4646
pad=pad,
4747
background_value=80,
4848
)
49-
s_data.image = s_data.create_sample_image_with_two_cells()
49+
s_data.image = s_data.create_sample_image_with_cells()
5050
image_stack = s_data.create_image_stack()
5151
_, angles = s_data.create_rotation_angles(image_stack.shape)
5252

0 commit comments

Comments
 (0)