Skip to content

Commit 7026c8c

Browse files
committed
Update __init__.py
Added the config/logging back to the init
1 parent e0c75fa commit 7026c8c

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

ngclearn/__init__.py

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,9 @@
3232
from ngcsimlib.context import Context, ContextObjectTypes
3333
from ngcsimlib import Component
3434
from ngcsimlib.compartment import Compartment
35-
36-
from ngcsimlib import logger
35+
from ngcsimlib import logger, configure
3736

3837
if not Path(argv[0]).name == "sphinx-build" or Path(argv[0]).name == "build.py":
3938
if "readthedocs" not in argv[0]: ## prevent readthedocs execution of preload
40-
# configure()
41-
# logger.init_logging()
42-
# from ngcsimlib.configManager import get_config
43-
# pkg_config = get_config("packages")
44-
# if pkg_config is not None:
45-
# use_base_numpy = pkg_config.get("use_base_numpy", False)
46-
# if use_base_numpy:
47-
# import numpy as numpy
48-
# else:
49-
# from jax import numpy
50-
# else:
51-
# from jax import numpy
52-
#
53-
#
54-
# preload_modules()
55-
a = 2
39+
configure()
40+
logger.init_logging()

0 commit comments

Comments
 (0)