Skip to content

Commit 95b9105

Browse files
Fix error when time series includes nan values (#40)
1 parent 095f052 commit 95b9105

19 files changed

+246
-96
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Bug report
33
about: Create a report to help us improve
44
title: ""
5-
labels: ""
5+
labels: "Bug"
66
assignees: ""
77
---
88

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Feature request
33
about: Suggest an idea for this project
44
title: ""
5-
labels: ""
5+
labels: "Feature"
66
assignees: ""
77
---
88

.github/workflows/_build.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# Copyright (C) 2023 Benjamin Thomas Schwertfeger
3-
# Github: https://github.com/btschwertfeger
3+
# GitHub: https://github.com/btschwertfeger
44
#
55
# Template workflow to build the project for a specific os
66
# and Python version.
@@ -33,9 +33,22 @@ jobs:
3333
- name: Install dependencies
3434
run: |
3535
python -m pip install --upgrade pip
36+
python -m pip install build
3637
3738
- name: Build the package
38-
run: python -m pip wheel -w dist --no-deps .
39+
run: python -m build --outdir .
3940

40-
- name: Install the package
41-
run: python3 -m pip install dist/python_cmethods*.whl
41+
- name: Install the package on Linux or MacOS
42+
if: runner.os != 'Windows'
43+
run: python -m pip install python_cmethods*.whl
44+
45+
- name: Install the package on Windows
46+
if: runner.os == 'Windows'
47+
run: |
48+
try {
49+
$WHEEL = Get-ChildItem -Path . -Filter "python_cmethods*.whl" -ErrorAction Stop
50+
python -m pip install $WHEEL
51+
} catch {
52+
Write-Error "Error: .whl file not found in the current directory."
53+
exit 1
54+
}

.github/workflows/_build_doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# Copyright (C) 2023 Benjamin Thomas Schwertfeger
3-
# Github: https://github.com/btschwertfeger
3+
# GitHub: https://github.com/btschwertfeger
44
#
55
# Template workflow to build documentation.
66
#

.github/workflows/_codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# Copyright (C) 2023 Benjamin Thomas Schwertfeger
3-
# Github: https://github.com/btschwertfeger
3+
# GitHub: https://github.com/btschwertfeger
44
#
55
# Template workflow to build the project for a specific os
66
# and Python version, run the tests and upload the results to codecov.

.github/workflows/_pre_commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# Copyright (C) 2023 Benjamin Thomas Schwertfeger
3-
# Github: https://github.com/btschwertfeger
3+
# GitHub: https://github.com/btschwertfeger
44
#
55
# Template workflow to run pre-commit.
66
#

.github/workflows/_pypi_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# Copyright (C) 2023 Benjamin Thomas Schwertfeger
3-
# Github: https://github.com/btschwertfeger
3+
# GitHub: https://github.com/btschwertfeger
44
#
55
# Template workflow to build the project and publish
66
# the package to PyPI. It can be used to publish on the

.github/workflows/_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# Copyright (C) 2023 Benjamin Thomas Schwertfeger
3-
# Github: https://github.com/btschwertfeger
3+
# GitHub: https://github.com/btschwertfeger
44
#
55
# Template workflow to run the unit tests of the package
66
#
@@ -38,4 +38,4 @@ jobs:
3838
run: python -m pip install ".[dev]"
3939

4040
- name: Run unit tests
41-
run: pytest tests/
41+
run: pytest tests

.github/workflows/cicd.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# Copyright (C) 2023 Benjamin Thomas Schwertfeger
3-
# Github: https://github.com/btschwertfeger
3+
# GitHub: https://github.com/btschwertfeger
44
#
55
# Workflow to apply pre-commit, build, test and upload the package
66
# to the test index of PyPI.
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
os: [ubuntu-latest, macos-latest] # todo: windows-latest
39+
os: [ubuntu-latest, macos-latest, windows-latest]
4040
python-version: ["3.8", "3.9", "3.10", "3.11"]
4141
with:
4242
os: ${{ matrix.os }}
@@ -48,7 +48,7 @@ jobs:
4848
needs: [Pre-Commit]
4949
uses: ./.github/workflows/_build_doc.yml
5050
with:
51-
os: "ubuntu-latest"
51+
os: ubuntu-latest
5252
python-version: "3.11"
5353

5454
## Run the unit tests for Python 3.8 until 3.11
@@ -58,7 +58,7 @@ jobs:
5858
uses: ./.github/workflows/_test.yml
5959
strategy:
6060
matrix:
61-
os: [ubuntu-latest]
61+
os: [ubuntu-latest, windows-latest]
6262
python-version: ["3.8", "3.9", "3.10", "3.11"]
6363
with:
6464
os: ${{ matrix.os }}
@@ -83,6 +83,6 @@ jobs:
8383
needs: [Test]
8484
uses: ./.github/workflows/_codecov.yml
8585
with:
86-
os: "ubuntu-latest"
86+
os: ubuntu-latest
8787
python-version: "3.11"
8888
secrets: inherit

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# -*- coding: utf-8 -*-
22
# Copyright (C) 2023 Benjamin Thomas Schwertfeger
3-
# Github: https://github.com/btschwertfeger
3+
# GitHub: https://github.com/btschwertfeger
44
#
55
# Workflow that gets triggered, when a release was created in the
6-
# Github UI. This enables the upload of the python-cmethods package
6+
# GitHub UI. This enables the upload of the python-cmethods package
77
# for the latest tag to PyPI.
88
#
99

@@ -14,7 +14,7 @@ on:
1414
types: [created]
1515

1616
jobs:
17-
## Run pre-commit - just to make shure that the code is still
17+
## Run pre-commit - just to make sure that the code is still
1818
## in the proper format
1919
##
2020
Pre-Commit:
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
os: ["macos-latest", "ubuntu-latest"]
31+
os: [macos-latest, ubuntu-latest, windows-latest]
3232
python-version: ["3.8", "3.9", "3.10", "3.11"]
3333
with:
3434
os: ${{ matrix.os }}
@@ -40,7 +40,7 @@ jobs:
4040
needs: [Pre-Commit]
4141
uses: ./.github/workflows/_build_doc.yml
4242
with:
43-
os: "ubuntu-latest"
43+
os: ubuntu-latest
4444
python-version: "3.11"
4545

4646
## Run the unit tests for Python 3.8 until 3.11
@@ -50,7 +50,7 @@ jobs:
5050
uses: ./.github/workflows/_test.yml
5151
strategy:
5252
matrix:
53-
os: [ubuntu-latest]
53+
os: [ubuntu-latest, windows-latest]
5454
python-version: ["3.8", "3.9", "3.10", "3.11"]
5555
with:
5656
os: ${{ matrix.os }}

0 commit comments

Comments
 (0)