Skip to content
Snippets Groups Projects
Commit 88b1d253 authored by David Schäfer's avatar David Schäfer
Browse files

python 3.11 compat

parent 0c0155bf
No related branches found
No related tags found
1 merge request!692python 3.11 compat
......@@ -29,7 +29,7 @@ jobs:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macos-latest"]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
defaults:
run:
# somehow this also works for windows O.o ??
......
......@@ -110,16 +110,16 @@ python310:
reports:
junit: report.xml
# python311:
# stage: test
# image: python:3.11
# script:
# - pytest tests -Werror --junitxml=report.xml
# - python -m saqc --config docs/resources/data/config.csv --data docs/resources/data/data.csv --outfile /tmp/test.csv
# artifacts:
# when: always
# reports:
# junit: report.xml
python311:
stage: test
image: python:3.11
script:
- pytest tests -Werror --junitxml=report.xml
- python -m saqc --config docs/resources/data/config.csv --data docs/resources/data/data.csv --outfile /tmp/test.csv
artifacts:
when: always
reports:
junit: report.xml
doctest:
stage: test
......
......@@ -6,8 +6,8 @@ Click==8.1.3
docstring_parser==0.15
dtw==1.4.0
matplotlib==3.7.1
numba==0.56.4
numpy==1.23.5
numba==0.57.0
numpy==1.24.3
outlier-utils==0.0.3
pyarrow==11.0.0
pandas==2.0.1
......
......@@ -551,7 +551,7 @@ def _coeffMat(x, deg):
return mat_
@nb.jit
@nb.jit(nopython=True)
def _fitX(a, b):
# helper function to construct numba-compatible polynomial fit function
# linalg solves ax = b
......@@ -559,7 +559,7 @@ def _fitX(a, b):
return det_
@nb.jit
@nb.jit(nopython=True)
def _fitPoly(x, y, deg):
# a numba compatible polynomial fit function
a = _coeffMat(x, deg)
......@@ -568,7 +568,7 @@ def _fitPoly(x, y, deg):
return p[::-1]
@nb.jit
@nb.jit(nopython=True)
def evalPolynomial(P, x):
# a numba compatible polynomial evaluator
result = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment