diff --git a/CITATION.cff b/CITATION.cff index 7afeed65..112134ea 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -15,7 +15,6 @@ authors: orcid: 'https://orcid.org/0000-0001-7482-1299' - given-names: Ivan family-names: Ivanov - affiliation: Chan Zuckerberg Biohub San Francisco orcid: 'https://orcid.org/0000-0001-6389-0213' affiliation: Chan Zuckerberg Biohub San Francisco - given-names: Jordão @@ -56,6 +55,6 @@ keywords: - bioimaging - ndimensional-arrays license: BSD-3-Clause -commit: a4d43a2a8cd8d4abce00e475f9f1699d451eba9f -version: 0.1.0 -date-released: '2024-02-14' +commit: dc704aa5506a84fdb2b538834ac181b691e70766 +version: 0.2.0 +date-released: '2025-04-22' diff --git a/README.md b/README.md index 4a6ae610..6d1fc98a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![PyPI - Python version](https://img.shields.io/pypi/pyversions/iohub)](https://pypi.org/project/iohub) [![PyPI - iohub version](https://img.shields.io/pypi/v/iohub.svg)](https://pypi.org/project/iohub) +[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.15022067.svg)](https://doi.org/10.5281/zenodo.15022067) [![Docs deployment](https://github.com/czbiohub-sf/iohub/actions/workflows/docs.yml/badge.svg)](https://czbiohub-sf.github.io/iohub) N-dimensional bioimaging produces data and metadata in various formats, diff --git a/docs/source/_static/switcher.json b/docs/source/_static/switcher.json index 6ac8044e..3a47e1e7 100644 --- a/docs/source/_static/switcher.json +++ b/docs/source/_static/switcher.json @@ -6,5 +6,9 @@ { "version": "v0.1.0", "url": "/iohub/v0.1.0/index.html" + }, + { + "version": "v0.2.0", + "url": "/iohub/v0.2.0/index.html" } -] +] \ No newline at end of file diff --git a/iohub/reader.py b/iohub/reader.py index a3bfc328..dc67188a 100644 --- a/iohub/reader.py +++ b/iohub/reader.py @@ -1,7 +1,6 @@ from __future__ import annotations import logging -import sys import warnings from pathlib import Path from typing import TYPE_CHECKING, Literal @@ -206,7 +205,7 @@ def print_info(path: StrOrBytesPath, verbose=False): else: reader = read_images(path, data_type=fmt) except (ValueError, RuntimeError): - print("Error: No compatible dataset is found.", file=sys.stderr) + print("Error: No compatible dataset is found.") return fmt_msg = f"Format:\t\t\t {fmt}" if extra_info: diff --git a/tests/cli/test_cli.py b/tests/cli/test_cli.py index f010e58d..2825babb 100644 --- a/tests/cli/test_cli.py +++ b/tests/cli/test_cli.py @@ -34,7 +34,7 @@ def pytest_generate_tests(metafunc): def test_cli_entry(): runner = CliRunner() result = runner.invoke(cli) - assert result.exit_code == 0 + assert result.exit_code == 2 assert "Usage" in result.output