From 4417803ac9d3babbbb61fd4af5fb8cc4ae46222d Mon Sep 17 00:00:00 2001 From: alisterburt Date: Wed, 1 Jun 2022 15:02:32 +0100 Subject: [PATCH] tiny refactor --- lil_aretomo/aretomo.py | 2 +- lil_aretomo/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lil_aretomo/aretomo.py b/lil_aretomo/aretomo.py index 44a2176..1b3f869 100644 --- a/lil_aretomo/aretomo.py +++ b/lil_aretomo/aretomo.py @@ -65,7 +65,7 @@ def run_aretomo_alignment( binning=binning, aretomo_executable=aretomo_executable, nominal_rotation_angle=nominal_rotation_angle, - local_align=local_align, + local_alignments=local_align, n_patches_xy=n_patches_xy, thickness_for_alignment=thickness_for_alignment ) diff --git a/lil_aretomo/utils.py b/lil_aretomo/utils.py index 6f2bf70..a2c3826 100644 --- a/lil_aretomo/utils.py +++ b/lil_aretomo/utils.py @@ -31,7 +31,7 @@ def align_tilt_series_aretomo( binning: float, aretomo_executable: Path, nominal_rotation_angle: bool or float, - local_align: bool, + local_alignments: bool, n_patches_xy: tuple[int, int], thickness_for_alignment: float ): @@ -54,7 +54,7 @@ def align_tilt_series_aretomo( command.append('-TiltAxis') command.append(f'{nominal_rotation_angle}') - if local_align: + if local_alignments is True: command.append('-Patch') command.append(f'{n_patches_xy[0]}') command.append(f'{n_patches_xy[1]}')