how can I initialize a ndarray when using pydantic?
This code throws a ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
from pydantic.dataclasses import dataclass
import numpy as np
@dataclass
class TestNumpyArray:
numpyArray: np.ndarray = np.zeros(10)
testNumpyArray = TestNumpyArray()