1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
"""
Runtime targets for code generation.
"""
# Register the base category before importing the indivial codegen targets with
# their subcategories
from brian2.core.preferences import prefs
from brian2.utils.logger import get_logger
prefs.register_preferences(
"codegen.runtime",
"Runtime codegen preferences (see subcategories for individual targets)",
)
logger = get_logger(__name__)
from .numpy_rt import *
try:
from .cython_rt import *
except ImportError:
pass # todo: raise a warning?
try:
from .GSLcython_rt import *
except ImportError:
pass
|