some new features
This commit is contained in:
@ -0,0 +1 @@
|
||||
pip
|
||||
@ -0,0 +1,11 @@
|
||||
Copyright 2023 Simons Foundation
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@ -0,0 +1,37 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: stanio
|
||||
Version: 0.5.1
|
||||
Summary: Utilities for preparing Stan inputs and processing Stan outputs
|
||||
Author: Stan Dev Team
|
||||
License: BSD-3-Clause
|
||||
Project-URL: Homepage, https://github.com/stan-dev/stanio
|
||||
Project-URL: Bug Tracker, https://github.com/stan-dev/stanio/issues
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Development Status :: 4 - Beta
|
||||
Classifier: Operating System :: OS Independent
|
||||
Requires-Python: >=3.8
|
||||
Description-Content-Type: text/markdown
|
||||
License-File: LICENSE
|
||||
Requires-Dist: numpy
|
||||
Provides-Extra: test
|
||||
Requires-Dist: pandas ; extra == 'test'
|
||||
Requires-Dist: pytest ; extra == 'test'
|
||||
Requires-Dist: pytest-cov ; extra == 'test'
|
||||
Provides-Extra: ujson
|
||||
Requires-Dist: ujson >=5.5.0 ; extra == 'ujson'
|
||||
|
||||
# StanIO
|
||||
|
||||
[](https://codecov.io/gh/stan-dev/stanio) [](https://github.com/stan-dev/stanio/actions/workflows/test.yaml)
|
||||
|
||||
A set of Python functions for data-wrangling in the formats used by
|
||||
the [Stan](https://mc-stan.org) probabalistic programming language.
|
||||
|
||||
It is primarily developed for use in [cmdstanpy](https://github.com/stan-dev/cmdstanpy).
|
||||
|
||||
## Features
|
||||
|
||||
- Writing Python dictionaries to Stan-compatible JSON (with optional support for using `ujson` for faster serialization)
|
||||
- Basic reading of StanCSV files into numpy arrays
|
||||
- Parameter extraction from numpy arrays based on StanCSV headers
|
||||
- e.g., if you have a `matrix[2,3] x` in a Stan program, extracting `x` will give you a `(num_draws, 2, 3)` numpy array
|
||||
@ -0,0 +1,15 @@
|
||||
stanio-0.5.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
stanio-0.5.1.dist-info/LICENSE,sha256=s2th4HWOqlkI2OT5_fRkTO28dmCVv56-G81FlgQMNgc,1466
|
||||
stanio-0.5.1.dist-info/METADATA,sha256=oDJcilgD8jl765aA-rVCa5VAlLECS0GDznCAuOOpZ1g,1637
|
||||
stanio-0.5.1.dist-info/RECORD,,
|
||||
stanio-0.5.1.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
||||
stanio-0.5.1.dist-info/top_level.txt,sha256=ADUEOe-H90-2Jrf-brIXR6JxLolmsg1rTENW5_f1-7Y,7
|
||||
stanio/__init__.py,sha256=KKRXh8gAZrQ2-Ai8vGVLN7WA9O-0nDXifn_9QlT1KGg,293
|
||||
stanio/__pycache__/__init__.cpython-312.pyc,,
|
||||
stanio/__pycache__/csv.cpython-312.pyc,,
|
||||
stanio/__pycache__/json.cpython-312.pyc,,
|
||||
stanio/__pycache__/reshape.cpython-312.pyc,,
|
||||
stanio/csv.py,sha256=l1by_WdR8JvBQ1VO_dC2_iCpBqphkInIpKHPOkjneHg,1552
|
||||
stanio/json.py,sha256=1PHNjdZNsr7Is3EAvtahT3MHkG-kPwHk3GX3a5D9Qs0,3467
|
||||
stanio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
stanio/reshape.py,sha256=-08gOOdsbo3fqJazjkMvPrhO9UiRf6xWg7fAxDrdQsg,8519
|
||||
@ -0,0 +1,5 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: setuptools (70.2.0)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
|
||||
@ -0,0 +1 @@
|
||||
stanio
|
||||
Reference in New Issue
Block a user