From 326f0fd031e20e95c13d242cb0ef804770d5d3a4 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Sat, 2 Nov 2024 11:34:29 +0200 Subject: [PATCH 1/3] major: Initial release. add example --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1232ce9..420165b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,22 @@ -This is pysphereproj +# PySphereProj +This is a simple package made of 3d interpolators (CIC based) and 3d to healpix projector. + +Everything is contained in the package `sphereproj`. + +Here is a short example for spherical projection: + +```python + +import sphereproj +import numpy as np + +N = 256 +Nside=128 +rho = np.random.randn(N,N,N) + +result = sphereproj.spherical_projection(Nside, density, 0, 128, integrator_id=1) +# min_distance, max_distance, progress=1, integrator_id=0, shifter=None, booster=-1) + + +``` From 00dae600572b54d3c21901c1d11f692be551847a Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Sat, 2 Nov 2024 11:40:27 +0200 Subject: [PATCH 2/3] chore: semantic release tweaks --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 829160c..afbf165 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,10 +68,9 @@ env = "GIT_COMMIT_AUTHOR" default = "semantic-release " [tool.semantic_release.commit_parser_options] -allowed_tags = ["major","build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"] +allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"] minor_tags = ["feat"] patch_tags = ["fix", "perf"] -major_tags = ["major"] default_bump_level = 0 [tool.semantic_release.remote] From 6d6e4f2e535b3be938beb0c71840530f2a542093 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Sun, 3 Nov 2024 10:02:18 +0200 Subject: [PATCH 3/3] fix: bump to 1.0.0 manually --- pyproject.toml | 2 +- src/sphereproj/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index afbf165..e7766b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -version = "0.0.2" +version = "1.0.0" requires-python = ">= 3.8" name = "pysphereproj" dependencies = [ diff --git a/src/sphereproj/__init__.py b/src/sphereproj/__init__.py index 249720a..2cf1ac8 100644 --- a/src/sphereproj/__init__.py +++ b/src/sphereproj/__init__.py @@ -1,3 +1,3 @@ from ._project import spherical_projection, project_cic, interp3d -__version__ = "1.0" +__version__ = "1.0.0"