Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
virgesmith committed Apr 27, 2024
1 parent ac129af commit 1591e2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ echo $version
# no binary dist as C++
python3 setup.py sdist
# upload
# twine upload -u __token__ -p $TEST_PYPI_TOKEN --repository-url https://test.pypi.org/legacy/ dist/humanleague-$version.tar.gz
twine upload -u __token__ -p $PYPI_TOKEN --repository-url https://upload.pypi.org/legacy/ dist/humanleague-$version.tar.gz
# twine upload -u __token__ -p $TEST_PYPI_API_TOKEN --repository-url https://test.pypi.org/legacy/ dist/humanleague-$version.tar.gz
twine upload -u __token__ -p $PYPI_API_TOKEN --repository-url https://upload.pypi.org/legacy/ dist/humanleague-$version.tar.gz

# NB on testPyPI, deps need to been installed from main repo. Use this:
# pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple humanleague
3 changes: 2 additions & 1 deletion tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def test_integerise() -> None:

# inexact
r, stats = hl.integerise(np.array([0.4, 0.3, 0.2, 0.1]), 17)
assert stats["rmse"] == 0.273861278752583
assert stats["rmse"] == pytest.approx(0.273861278752583, abs=1e-6)

assert np.array_equal(r, np.array([7, 5, 3, 2]))

# 1-d case
Expand Down

0 comments on commit 1591e2d

Please sign in to comment.