File: __init__.py

package info (click to toggle)
brian 2.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,872 kB
  • sloc: python: 51,820; cpp: 2,033; makefile: 108; sh: 72
file content (27 lines) | stat: -rw-r--r-- 578 bytes parent folder | download | duplicates (2)
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