stan-dev / pystan

PyStan, a Python interface to Stan, a platform for statistical modeling. Documentation: https://pystan.readthedocs.io
ISC License
342 stars 59 forks source link

Tuple datatype io #394

Open ahartikainen opened 1 year ago

ahartikainen commented 1 year ago

Describe the bug

Stan 2.33 brings us Tuple datatype. I think we need to handle this with a custom numpy dtype depending on the tuple type.

How can we access tuple type and pack incoming data correctly? And how should user give out the data for inits / data.

Custom numpy dtypes are easy to create and also support access to individual components, but we probably should either have small example how to work with them or a functionality to unpack them.