Skip to content

Commit

Permalink
prevent circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
lubbersnick committed Sep 20, 2024
1 parent 739c254 commit 2ffeed1
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions hippynn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,23 @@
"""
# Dev note: imports of submodules reflect dependency of submodules.

from . import _version
__version__ = _version.get_versions()['version']

# Tools should not have any dependencies on internal packages.
from . import tools
from .tools import active_directory, log_terminal

# Configuration settings
from ._settings_setup import settings, reload_settings

# Tools should not have any dependencies on internal packages besides settings.
from . import tools
from .tools import active_directory, log_terminal

# Custom Kernels
from . import custom_kernels
from .custom_kernels import set_custom_kernels

# Pytorch modules
from . import layers
from . import networks
Expand Down Expand Up @@ -50,10 +56,6 @@
from . import molecular_dynamics
from . import optimizer

# Custom Kernels
from . import custom_kernels
from .custom_kernels import set_custom_kernels

from . import pretraining
from .pretraining import hierarchical_energy_initialization

Expand Down

0 comments on commit 2ffeed1

Please sign in to comment.