Metadata-Version: 2.4
Name: hyper-post
Version: 0.1.1
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Rust
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Requires-Dist: numpy>=1.26.4,<2
Requires-Dist: pytest>=8 ; extra == 'dev'
Requires-Dist: scipy==1.17.1 ; extra == 'dev'
Requires-Dist: numpy==1.26.4 ; extra == 'dev'
Requires-Dist: cryptography>=43 ; extra == 'dev'
Provides-Extra: dev
License-File: LICENSE
Summary: Post-process a NumPy array.
Author: hyper_post contributors
License: MIT
Requires-Python: >=3.12, <3.13
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# hyper-post

```python
from hyper_post import finalize

out = finalize(x, target="y2", strength=0.00767)
```

## 安装

```text
pip install hyper-post
```

需要 Python 3.12 和 NumPy 1.26.x。提供 Windows AMD64 与 Linux x86_64 的 wheel。

## 用法

`target` 只能是 `"y1"` 或 `"y2"`，必须用关键字传入。`strength` 是 `[0, 1]` 里的数，默认 `0.00767`。

```python
out = finalize(x, target="y1")
out = finalize(x, target="y2", strength=0.005)
```

输入 `x` 为二维 `float32` 或 `float64` 数组，形状必须是 `(442, 5282)`。返回同形状的新 `float32` 数组，不修改 `x`。不读写文件，不访问网络。

无匹配平台的 wheel 时无法安装，没有纯 Python 后备实现。

## License

MIT

