Skip to content

Commit

Permalink
cpow true
Browse files Browse the repository at this point in the history
  • Loading branch information
ameli committed Sep 16, 2023
1 parent 63f7cc4 commit c5ed5aa
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 14 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,14 @@ jobs:
# python -m pip install .
python setup.py install
# Do not test on pypy since the test scripts require scipy to be able to compare the results
# of this package with those of scipy. However, pypy tries to compile scipy from source and
# raises error of BLAS not found.
- name: Test
if: (!contains(matrix.python-version, 'pypy'))
run: |
python -m pip install --upgrade pytest
python -m pip install --upgrade pytest-cov
python -m pip install -r tests/requirements.txt
python -m pip install --prefer-binary -r tests/requirements.txt
mv special_functions special_functions_do_not_import
pytest
6 changes: 3 additions & 3 deletions .github/workflows/deploy-conda.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: deploy-conda

on:
# push:
# branches:
# - main
push:
branches:
- main
release:
types:
- published
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ Successful installation and tests have been performed on the following platforms
+==========+======+======+======+======+======+=======+=================+
| Linux | |y| | |y| | |y| | |y| | |y| | |y| | |build-linux| |
+----------+------+------+------+------+------+-------+-----------------+
| macOS | |y| | |y| | |y| | |y| | |n| | |n| | |build-macos| |
| macOS | |y| | |y| | |y| | |n| | |n| | |n| | |build-macos| |
+----------+------+------+------+------+------+-------+-----------------+
| Windows | |y| | |y| | |y| | |y| | |n| | |n| | |build-windows| |
| Windows | |y| | |y| | |y| | |n| | |n| | |n| | |build-windows| |
+----------+------+------+------+------+------+-------+-----------------+

.. |build-linux| image:: https://github.com/ameli/special_functions/workflows/build-linux/badge.svg
Expand Down
4 changes: 2 additions & 2 deletions docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Successful installation and tests have been performed on the following platforms
+==========+======+======+======+======+======+=======+=================+
| Linux | |y| | |y| | |y| | |y| | |y| | |y| | |build-linux| |
+----------+------+------+------+------+------+-------+-----------------+
| macOS | |y| | |y| | |y| | |y| | |n| | |n| | |build-macos| |
| macOS | |y| | |y| | |y| | |n| | |n| | |n| | |build-macos| |
+----------+------+------+------+------+------+-------+-----------------+
| Windows | |y| | |y| | |y| | |y| | |n| | |n| | |build-windows| |
| Windows | |y| | |y| | |y| | |n| | |n| | |n| | |build-windows| |
+----------+------+------+------+------+------+-------+-----------------+

.. |build-linux| image:: https://github.com/ameli/special_functions/workflows/build-linux/badge.svg
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def configuration(parent_package='', top_path=None):
'wraparound': False,
'nonecheck': False,
'embedsignature': True,
'cpow': True,
'linetrace': True
})

Expand Down
2 changes: 1 addition & 1 deletion special_functions/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.4"
__version__ = "0.2.5"
2 changes: 1 addition & 1 deletion tests/test_besselh.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
from scipy.special import hankel1, hankel2, jvp, yvp
from math import isnan
import warnings
import numpy
warnings.filterwarnings(
"ignore",
message="invalid value encountered in cdouble_scalars")
import numpy
numpy.seterr(divide='ignore', invalid='ignore')


Expand Down
2 changes: 1 addition & 1 deletion tests/test_besseli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
from special_functions import besseli
from scipy.special import i0, i1, iv, ivp
from math import isnan, isinf, copysign
import numpy
import warnings
warnings.filterwarnings(
"ignore",
message="invalid value encountered in double_scalars")
warnings.filterwarnings(
"ignore",
message="invalid value encountered in cdouble_scalars")
import numpy
numpy.seterr(divide='ignore', invalid='ignore')


Expand Down
2 changes: 1 addition & 1 deletion tests/test_besselj.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
from special_functions import besselj
from scipy.special import j0, j1, jn, jv, jvp
from math import isnan, isinf, copysign
import numpy
import warnings
warnings.filterwarnings(
"ignore",
message="invalid value encountered in double_scalars")
warnings.filterwarnings(
"ignore",
message="invalid value encountered in cdouble_scalars")
import numpy
numpy.seterr(divide='ignore', invalid='ignore')


Expand Down
2 changes: 1 addition & 1 deletion tests/test_besselk.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
from special_functions import besselk
from scipy.special import k0, k1, kn, kv, kvp
from math import isnan, isinf, copysign
import numpy
import warnings
warnings.filterwarnings(
"ignore",
message="invalid value encountered in double_scalars")
warnings.filterwarnings(
"ignore",
message="invalid value encountered in cdouble_scalars")
import numpy
numpy.seterr(divide='ignore', invalid='ignore')


Expand Down
2 changes: 1 addition & 1 deletion tests/test_bessely.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
from special_functions import bessely
from scipy.special import yn, yv, yvp
from math import isnan, isinf, copysign
import numpy
import warnings
warnings.filterwarnings(
"ignore",
message="invalid value encountered in double_scalars")
warnings.filterwarnings(
"ignore",
message="invalid value encountered in cdouble_scalars")
import numpy
numpy.seterr(divide='ignore', invalid='ignore')


Expand Down

0 comments on commit c5ed5aa

Please sign in to comment.