Skip to content

Commit

Permalink
Merge pull request #17 from alisterburt/minor-refactor2
Browse files Browse the repository at this point in the history
tiny refactor 2
  • Loading branch information
EuanPyle authored Jun 1, 2022
2 parents 38d0cac + 4417803 commit ab9beda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lil_aretomo/aretomo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
4 changes: 2 additions & 2 deletions lil_aretomo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand All @@ -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]}')
Expand Down

0 comments on commit ab9beda

Please sign in to comment.