diff --git a/lil_aretomo/aretomo.py b/lil_aretomo/aretomo.py index e1dbb66..d3c0d7b 100644 --- a/lil_aretomo/aretomo.py +++ b/lil_aretomo/aretomo.py @@ -1,5 +1,5 @@ from pathlib import Path -from typing import List, Optional +from typing import List, Optional, Tuple from rich.console import Console from .utils import ( @@ -20,7 +20,7 @@ def run_aretomo_alignment( local_align: Optional[bool] = False, target_pixel_size: Optional[float] = 10, nominal_rotation_angle: Optional[float] = None, - n_patches_xy: Optional[tuple[int, int]] = (5, 4), + n_patches_xy: Optional[Tuple[int, int]] = (5, 4), thickness_for_alignment: Optional[float] = 800, correct_tilt_angle_offset: Optional[bool] = False ): diff --git a/lil_aretomo/utils.py b/lil_aretomo/utils.py index d7a83c5..fc49cc7 100644 --- a/lil_aretomo/utils.py +++ b/lil_aretomo/utils.py @@ -2,7 +2,7 @@ import shutil import subprocess from pathlib import Path -from typing import List +from typing import List, Tuple import numpy as np @@ -32,7 +32,7 @@ def align_tilt_series_aretomo( aretomo_executable: Path, nominal_rotation_angle: bool or float, local_alignments: bool, - n_patches_xy: tuple[int, int], + n_patches_xy: Tuple[int, int], thickness_for_alignment: float, correct_tilt_angle_offset: bool ):