Skip to content

Commit

Permalink
Move import of recon methods to module scope
Browse files Browse the repository at this point in the history
  • Loading branch information
ptim0626 committed Aug 14, 2024
1 parent 624f482 commit 649a558
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions httomolibgpu/recon/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
from numpy import float32, complex64
from typing import Optional, Type

from tomobar.methodsDIR_CuPy import RecToolsDIRCuPy
from tomobar.methodsIR_CuPy import RecToolsIRCuPy

__all__ = [
"FBP",
"LPRec",
Expand Down Expand Up @@ -360,8 +363,6 @@ def _instantiate_direct_recon_class(
Returns:
Type[RecToolsDIRCuPy]: an instance of the direct recon class
"""
from tomobar.methodsDIR_CuPy import RecToolsDIRCuPy

if center is None:
center = data.shape[2] // 2 # making a crude guess
if recon_size is None:
Expand Down Expand Up @@ -400,8 +401,6 @@ def _instantiate_iterative_recon_class(
Returns:
Type[RecToolsIRCuPy]: an instance of the iterative class
"""
from tomobar.methodsIR_CuPy import RecToolsIRCuPy

if center is None:
center = data.shape[2] // 2 # making a crude guess
if recon_size is None:
Expand Down

0 comments on commit 649a558

Please sign in to comment.