From 1b55ade69852e6a9353a6073741fbf146bed08b3 Mon Sep 17 00:00:00 2001 From: Jaewook Lee Date: Fri, 26 Jul 2024 22:12:55 +0200 Subject: [PATCH] edit workflow permission / fix links --- .github/workflows/main.yml | 2 ++ README.md | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1fbb924..4da310f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: diff --git a/README.md b/README.md index 55cd0c1..7d615a3 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@

-**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__}