From f6814de53fdb3c0e461c1d6ef52330b9a847cdb8 Mon Sep 17 00:00:00 2001 From: Beforerr Date: Fri, 1 Nov 2024 03:16:16 -0700 Subject: [PATCH] lazy load vires --- pyspedas/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyspedas/__init__.py b/pyspedas/__init__.py index 86b9879b..b5446820 100644 --- a/pyspedas/__init__.py +++ b/pyspedas/__init__.py @@ -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 @@ -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