Skip to content

Commit ef738fe

Browse files
committed
Allow grid metric time to be negative
1 parent 22a1775 commit ef738fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simvue/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class GridMetricSet(pydantic.BaseModel):
9595
model_config = pydantic.ConfigDict(
9696
arbitrary_types_allowed=True, extra="forbid", validate_default=True
9797
)
98-
time: pydantic.NonNegativeFloat | pydantic.NonNegativeInt
98+
time: float | int
9999
timestamp: typing.Annotated[str | None, pydantic.BeforeValidator(simvue_timestamp)]
100100
step: pydantic.NonNegativeInt
101101
array: list[float] | list[list[float]] | numpy.ndarray

0 commit comments

Comments
 (0)