Compare commits

..

5 Commits

3 changed files with 149 additions and 147 deletions

View File

@ -98,7 +98,7 @@ def patch(module):
module.Some = Some
module.none = none
# NumPy math functions
# NumPy Math functions
module.isnan = np.isnan
module.isinf = np.isinf
module.sin = np.sin
@ -126,12 +126,6 @@ def patch(module):
module.arctanh = np.arctanh
module.expm1 = np.expm1
module.cbrt = np.cbrt
module.erf = scipy.special.erf
module.erfc = scipy.special.erfc
module.gamma = scipy.special.gamma
module.gammaln = scipy.special.gammaln
module.j0 = scipy.special.j0
module.j1 = scipy.special.j1
module.arctan2 = np.arctan2
module.copysign = np.copysign
module.fmax = np.fmax
@ -140,6 +134,14 @@ def patch(module):
module.hypot = np.hypot
module.nextafter = np.nextafter
# SciPy Math Functions
module.erf = scipy.special.erf
module.erfc = scipy.special.erfc
module.gamma = scipy.special.gamma
module.gammaln = scipy.special.gammaln
module.j0 = scipy.special.j0
module.j1 = scipy.special.j1
def file_import(filename, prefix="file_import_"):
filename = pathlib.Path(filename)