diff --git a/README.md b/README.md index 6de035d..e900543 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,12 @@ [![PyPI](https://img.shields.io/pypi/v/cherab-inversion?label=PyPI&logo=PyPI)](https://pypi.org/project/cherab-inversion/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cherab-inversion?logo=Python) -[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10118753.svg)](https://doi.org/10.5281/zenodo.10118753) +[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10118752.svg)](https://doi.org/10.5281/zenodo.10118752) [![GitHub](https://img.shields.io/github/license/munechika-koyo/cherab_inversion)](https://opensource.org/licenses/BSD-3-Clause) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/munechika-koyo/cherab_inversion/main.svg)](https://results.pre-commit.ci/latest/github/munechika-koyo/cherab_inversion/main) [![Documentation Status](https://readthedocs.org/projects/cherab-inversion/badge/?version=latest)](https://cherab-inversion.readthedocs.io/en/latest/?badge=latest) -[![PyPI Publish](https://github.com/munechika-koyo/cherab_inversion/actions/workflows/python-publish.yml/badge.svg)](https://github.com/munechika-koyo/cherab_inversion/actions/workflows/python-publish.yml) +[![PyPI Publish](https://github.com/munechika-koyo/cherab_inversion/actions/workflows/deploy-pypi.yml/badge.svg)](https://github.com/munechika-koyo/cherab_inversion/actions/workflows/deploy-pypi.yml) [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) diff --git a/cherab/inversion/__init__.py b/cherab/inversion/__init__.py index 02961d2..99027c2 100644 --- a/cherab/inversion/__init__.py +++ b/cherab/inversion/__init__.py @@ -5,4 +5,4 @@ from .mfr import Mfr __all__ = ["compute_svd", "_SVDBase", "Lcurve", "GCV", "Mfr"] -__version__ = "0.1" +__version__ = "0.1.1" diff --git a/cherab/inversion/mfr.py b/cherab/inversion/mfr.py index e211df7..033545e 100644 --- a/cherab/inversion/mfr.py +++ b/cherab/inversion/mfr.py @@ -154,7 +154,7 @@ def solve( regularizer: Type["_SVDBase"] = Lcurve, store_regularizers: bool = False, path: str | Path | None = None, - use_gpu: bool = True, + use_gpu: bool = False, verbose: bool = False, **kwargs, ) -> tuple[np.ndarray, dict]: @@ -184,8 +184,7 @@ def solve( If `path` is None, the regularizer objects will be stored in the current directory if `store_regularizers` is True. use_gpu - same as :obj:`~.compute_svd`'s `use_gpu` argument, - by default True + same as :obj:`~.compute_svd`'s `use_gpu` argument, by default False verbose If True, print iteration information regarding SVD computation, by default False **kwargs diff --git a/docs/source/_static/switcher.json b/docs/source/_static/switcher.json index cd9eac6..bb3d8f8 100644 --- a/docs/source/_static/switcher.json +++ b/docs/source/_static/switcher.json @@ -5,7 +5,7 @@ }, { "name": "0.1", - "version": "v0.1", + "version": "v0.1.1", "url": "https://cherab-inversion.readthedocs.io/en/v0.1/", "preferred": true } diff --git a/docs/source/conf.py b/docs/source/conf.py index e9df4e0..d9612c6 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -112,11 +112,7 @@ # If it is an integer, we're in a PR build and the version isn't correct. # If it's "latest" → change to "dev" (that's what we want the switcher to call it) if not version_match or version_match.isdigit() or version_match == "latest": - # For local development, infer the version to match from the package. - if version_obj.is_prerelease: - version_match = "dev" - else: - version_match = f"v{release}" + version_match = "dev" elif version_match == "stable": version_match = f"v{release}" @@ -128,6 +124,11 @@ "icon": "fab fa-github-square", "type": "fontawesome", }, + { + "name": "PyPI", + "url": "https://pypi.org/project/cherab-inversion", + "icon": "fa-solid fa-box", + }, ], "pygment_light_style": "default", "pygment_dark_style": "native", diff --git a/docs/source/user/citation.rst b/docs/source/user/citation.rst index 9614152..518ea66 100644 --- a/docs/source/user/citation.rst +++ b/docs/source/user/citation.rst @@ -6,5 +6,5 @@ Citations ========= If you would like to publish or write paper using CHERAB-Inversion, please cite the following doi: -.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.10118753.svg - :target: https://doi.org/10.5281/zenodo.10118753 +.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.10118752.svg + :target: https://doi.org/10.5281/zenodo.10118752 diff --git a/meson.build b/meson.build index a57101d..930fb26 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,7 @@ project( 'cherab-inversion', 'cython', # Note that version cannot dinamically changed now. - version: '0.1', + version: '0.1.1', meson_version: '>= 0.64.0', default_options: [ 'cython_args=-3', diff --git a/pyproject.toml b/pyproject.toml index 87fa1b7..fb817b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ build-backend = "mesonpy" [project] name = "cherab-inversion" description = "Cherab inversion framework" -version = "0.1" +version = "0.1.1" readme = "README.md" authors = [ { name = "Koyo Munechika", email = "munechika.koyo@torus.nr.titech.ac.jp" },