Skip to content

Commit

Permalink
refactor: remove the mess of imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
paquiteau committed Sep 24, 2023
1 parent f054156 commit c4de251
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 74 deletions.
44 changes: 11 additions & 33 deletions src/simfmri/simulator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,22 @@
"""
from .simulation import SimDataType, SimulationParams, SimulationData
from .handlers import (
AVAILABLE_HANDLERS,
H,
AcquisitionHandler,
ActivationHandler,
BigPhantomGeneratorHandler,
BrainwebPhantomHandler,
GaussianNoiseHandler,
KspaceNoiseHandler,
NoiseHandler,
RadialAcquisitionHandler,
RicianNoiseHandler,
RoiDefinerHandler,
SheppLoganGeneratorHandler,
SlicerHandler,
TextureAdderHandler,
VDSAcquisitionHandler,
StackedSpiralAcquisitionHandler,
handler,
get_handler,
list_handlers,
AbstractHandler,
)

__all__ = [
"H",
"AcquisitionHandler",
"ActivationHandler",
"BigPhantomGeneratorHandler",
"BrainwebPhantomHandler",
"GaussianNoiseHandler",
"KspaceNoiseHandler",
"NoiseHandler",
"RadialAcquisitionHandler",
"RicianNoiseHandler",
"RoiDefinerHandler",
"SheppLoganGeneratorHandler",
"SimulationData",
"SimDataType",
"SimulationParams",
"SlicerHandler",
"TextureAdderHandler",
"VDSAcquisitionHandler",
"StackedSpiralAcquisitionHandler",
# handlers
# simulation
"AVAILABLE_HANDLERS",
"H",
"handler",
"get_handler",
"list_handlers",
"AbstractHandler",
]
45 changes: 4 additions & 41 deletions src/simfmri/simulator/handlers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,48 +22,11 @@
AbstractHandler,
)

from .acquisition import (
AcquisitionHandler,
VDSAcquisitionHandler,
RadialAcquisitionHandler,
StackedSpiralAcquisitionHandler,
)
from .activation import ActivationHandler
from .base import AbstractHandler
from .loader import LoadDataHandler, SaveDataHandler
from .noise import (
GaussianNoiseHandler,
KspaceNoiseHandler,
NoiseHandler,
RicianNoiseHandler,
)
from .phantom import (
SheppLoganGeneratorHandler,
SlicerHandler,
BigPhantomGeneratorHandler,
RoiDefinerHandler,
BrainwebPhantomHandler,
TextureAdderHandler,
)

__all__ = [
"AVAILABLE_HANDLERS",
"H",
"handler",
"get_handler",
"list_handlers",
"AbstractHandler",
"AcquisitionHandler",
"ActivationHandler",
"BigPhantomGeneratorHandler",
"BrainwebPhantomHandler",
"GaussianNoiseHandler",
"KspaceNoiseHandler",
"LoadDataHandler",
"NoiseHandler",
"RicianNoiseHandler",
"RoiDefinerHandler",
"SaveDataHandler",
"SheppLoganGeneratorHandler",
"SlicerHandler",
"TextureAdderHandler",
"VDSAcquisitionHandler",
"RadialAcquisitionHandler",
"StackedSpiralAcquisitionHandler",
]

0 comments on commit c4de251

Please sign in to comment.