We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1635915 commit 1f0f0a9Copy full SHA for 1f0f0a9
1 file changed
cmdstanpy/stanfit/metadata.py
@@ -94,6 +94,7 @@ class MetricInfo(BaseModel):
94
metric_type: Literal["diag_e", "dense_e", "unit_e"]
95
inv_metric: np.ndarray
96
97
+ # allows ndarray as pydantic attribute
98
model_config = {"arbitrary_types_allowed": True}
99
100
@field_validator("inv_metric", mode="before")
0 commit comments