| 1 |
""" |
| 2 |
A dummy package to allow importing numpy and the unit-aware replacements of |
| 3 |
numpy functions without having to know which functions are overwritten. |
| 4 |
|
| 5 |
This can be used for example as ``import brian2.numpy_ as np`` |
| 6 |
""" |
| 7 |
|
| 8 |
# isort:skip_file |
| 9 |
# flake8: noqa |
| 10 |
|
| 11 |
from numpy import * |
| 12 |
from brian2.units.unitsafefunctions import * |
| 13 |
|
| 14 |
# These will not be imported with a wildcard import to not overwrite the |
| 15 |
# builtin names (mimicking the numpy behaviour) |
| 16 |
from builtins import bool, float, complex |
| 17 |
|
| 18 |
from numpy import round, abs, max, min |
| 19 |
|
| 20 |
import numpy |
| 21 |
import brian2.units.unitsafefunctions as brian2_functions |
| 22 |
|
| 23 |
__all__ = [] |
| 24 |
__all__.extend(numpy.__all__) |
| 25 |
__all__.extend(brian2_functions.__all__) |