infer-actively / pymdp

A Python implementation of active inference for Markov Decision Processes
MIT License
419 stars 83 forks source link

make safe obj_array_from_list to address issue #130 with test #131

Closed ran-wei-verses closed 1 month ago

ran-wei-verses commented 1 month ago

Fix issue #130 where numpy throws broadcasting error while trying to turn a list of arrays with same leading dimensions into an object array.

Added test for this case.

conorheins commented 1 month ago

This looks perfect, thanks for being thorough with the unit test as well :)