Skip to content

Commit

Permalink
chore: upgrade deps (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
legau authored Sep 25, 2022
1 parent bb4402f commit 195aed1
Show file tree
Hide file tree
Showing 4 changed files with 1,157 additions and 813 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/[email protected]
- uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.2.1
- name: Config Poetry
run: poetry config virtualenvs.in-project true
- name: Set up cache
Expand All @@ -45,7 +47,7 @@ jobs:
- name: Install dependencies
run: poetry install
- name: Test with coverage
run: poetry run tox -e test-cov -- --junitxml={toxinidir}/report.xml
run: poetry run -- tox -e test-cov -- --junitxml={toxinidir}/report.xml
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
Expand All @@ -72,7 +74,9 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/[email protected]
- uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.2.1
- name: Config Poetry
run: poetry config virtualenvs.in-project true
- name: Set up cache
Expand Down
4 changes: 2 additions & 2 deletions kanon/tables/interpolations.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ def linear_interpolation(df: pd.DataFrame, key: Real) -> Real:
lower, upper = _split_df(df, key)

if len(lower) == 0:
(_, a), (_, b) = upper.iloc[:2].T.iteritems()
(_, a), (_, b) = upper.iloc[:2].T.items()
elif len(upper) == 0:
(_, a), (_, b) = lower.iloc[-2:].T.iteritems()
(_, a), (_, b) = lower.iloc[-2:].T.items()
else:
a = lower.iloc[-1]
b = upper.iloc[0]
Expand Down
Loading

0 comments on commit 195aed1

Please sign in to comment.