Skip to content

Commit

Permalink
edit workflow permission / fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
j042 committed Jul 26, 2024
1 parent a68d66a commit 1b55ade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ jobs:
upload_pypi:
needs: [macos_wheel_m, macos_wheel_intel, linux_wheel, windows_wheel, source_dist]
runs-on: ubuntu-latest
permissions:
id-token: write
# try to publish only if this is a push to stable branch
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<p align="center"><img src="https://github.com/tataratat/napf/raw/main/docs/source/_static/napf.png" width="50%" title="nurbs"></p>

**napf - [nanoflann](https://github.com/jlblancoc/nanoflann) wrappers for python and maybe fortran**
**napf - nanoflann wrappers for python and maybe fortran**

[![main](https://github.com/tataratat/napf/actions/workflows/main.yml/badge.svg)](https://github.com/tataratat/napf/actions/workflows/main.yml)
[![PyPI version](https://badge.fury.io/py/napf.svg)](https://badge.fury.io/py/napf)


## python
As `nanoflann` offers template classes, separate classes are implemented in `napf` for each ___{datatype, distance metric}___. All the search functions are equipped with multi-thread execution. Uses [numpy.ndarray](https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html) for data input and output.
As [nanoflann](https://github.com/jlblancoc/nanoflann) offers template classes, separate classes are implemented in `napf` for each ___{datatype, distance metric}___. All the search functions are equipped with multi-thread execution. Uses [numpy.ndarray](https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html) for data input and output.
Currently, the combinations of following options are supported:
- `data type`: {__double__, __float__, __int__, __long__} _(corresponds to {np.float64, np.float32, np.int32, np.int64})_
- `distance metric`: {__L1__, __L2__}
Expand Down

0 comments on commit 1b55ade

Please sign in to comment.