diff --git a/CITATION.cff b/CITATION.cff index a435084..babb7af 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -23,5 +23,5 @@ keywords: - radio-astronomy - sam45 license: MIT -version: 1.0.0rc1 -date-released: '2025-12-25' +version: 1.0.0rc2 +date-released: '2025-12-26' diff --git a/docs/_static/switcher.json b/docs/_static/switcher.json index e3a87e5..e5d519b 100644 --- a/docs/_static/switcher.json +++ b/docs/_static/switcher.json @@ -1,7 +1,12 @@ [ { - "name": "1.0.0rc1 (latest)", - "version": "1.0.0rc1", + "name": "1.0.0rc2 (latest)", + "version": "1.0.0rc2", "url": "https://astropenguin.github.io/sam45/" + }, + { + "name": "1.0.0rc1", + "version": "1.0.0rc1", + "url": "https://astropenguin.github.io/sam45/1.0.0rc1" } ] diff --git a/docs/build b/docs/build index 96ccf61..9bcf26a 100755 --- a/docs/build +++ b/docs/build @@ -5,4 +5,4 @@ export LC_ALL=C.UTF-8 sphinx-apidoc -efMT -d 2 -o docs/_apidoc sam45 sphinx-build -a -b html docs docs/_build -sphinx-build -a -b html docs docs/_build/1.0.0rc1 +sphinx-build -a -b html docs docs/_build/1.0.0rc2 diff --git a/docs/conf.py b/docs/conf.py index 41c40ab..d35e494 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,6 +18,6 @@ ], "switcher": { "json_url": "https://astropenguin.github.io/sam45/_static/switcher.json", - "version_match": "1.0.0rc1", + "version_match": "1.0.0rc2", }, } diff --git a/pyproject.toml b/pyproject.toml index e9ea9e3..05d3254 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sam45" -version = "1.0.0rc1" +version = "1.0.0rc2" description = "NRO/SAM45 log data reader" readme = "README.md" keywords = [ diff --git a/sam45/__init__.py b/sam45/__init__.py index 969d651..a15b509 100644 --- a/sam45/__init__.py +++ b/sam45/__init__.py @@ -1,5 +1,5 @@ __all__ = ["dtypes", "read"] -__version__ = "1.0.0rc1" +__version__ = "1.0.0rc2" # dependencies diff --git a/sam45/dtypes.py b/sam45/dtypes.py index 75a7cd4..45bc469 100644 --- a/sam45/dtypes.py +++ b/sam45/dtypes.py @@ -8,16 +8,16 @@ # dependencies -import numpy as np +from numpy import dtype -def _get_dtype(name: str, /) -> np.dtype[Any]: - with (files("sam45") / "dtypes.toml").open() as f: - text = f.read() +def _get_dtype(name: str, /) -> dtype[Any]: + with (files("sam45") / "dtypes.toml").open() as file: + source = file.read() - consts = loads(text)["consts"] - dtype = loads(text.format(**consts))[name] - return np.dtype([(item["name"], item["dtype"]) for item in dtype]) + consts = loads(source)["consts"] + fields = loads(source.format(**consts))[name] + return dtype([(f["name"], f["dtype"]) for f in fields]).newbyteorder("<") ctl = _get_dtype("ctl") diff --git a/uv.lock b/uv.lock index 99290a8..b3be26b 100644 --- a/uv.lock +++ b/uv.lock @@ -957,7 +957,7 @@ wheels = [ [[package]] name = "sam45" -version = "1.0.0rc1" +version = "1.0.0rc2" source = { editable = "." } dependencies = [ { name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },