Closed kaushikcfd closed 3 years ago
I agree with you; I think this is just being mishandled. The key thing is that while object arrays are array containers, plain numpy arrays are not. So IMO the code should just funnel "normal" numpy arrays down the same path of "not a container" instead of complaining. PR welcome.
On running:
I get an error saying:
ValueError: only object arrays are supported, given dtype 'float64'
. Should dataclass_array_container not contain primitive-dtyped numpy arrays?I was expecting to get a shallow copy of
mystate
after the traversal.