Skip to content

Commit

Permalink
Move run_registration import into _on_run_button_click
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Aug 9, 2024
1 parent 88377a2 commit 0860d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brainglobe_registration/registration_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from skimage.segmentation import find_boundaries
from skimage.transform import rescale

from brainglobe_registration.elastix.register import run_registration
from brainglobe_registration.utils.utils import (
adjust_napari_image_layer,
calculate_rotated_bounding_box,
Expand Down Expand Up @@ -268,6 +267,7 @@ def _on_adjust_moving_image_reset_button_click(self):
adjust_napari_image_layer(self._moving_image, 0, 0, 0)

def _on_run_button_click(self):
from brainglobe_registration.elastix.register import run_registration

Check warning on line 270 in brainglobe_registration/registration_widget.py

View check run for this annotation

Codecov / codecov/patch

brainglobe_registration/registration_widget.py#L270

Added line #L270 was not covered by tests

current_atlas_slice = self._viewer.dims.current_step[0]

Expand Down

0 comments on commit 0860d13

Please sign in to comment.