Skip to content

Commit

Permalink
lazy load vires
Browse files Browse the repository at this point in the history
  • Loading branch information
Beforerr committed Nov 1, 2024
1 parent 5212571 commit f6814de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyspedas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@
def __getattr__(name):
if name in projects_submodules:
return import_module(".projects." + name, __name__)
if name == "vires":
return import_module("." + name, __name__)
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")

# This set of imports is still needed for backward compatibility, when using fully-qualified
Expand All @@ -101,7 +103,6 @@ def __getattr__(name):
# for backward compatibility
from .projects.kompsat.load import load as kompsat_load
from .projects.maven import maven_load
from . import vires

# set up logging/console output
import logging
Expand Down

0 comments on commit f6814de

Please sign in to comment.