Skip to content

Commit 4d3d0da

Browse files
authored
Merge pull request #358 from simvue-io/357-time-should-be-a-float-not-int
`time` should be a float, not int
2 parents c2d0dc6 + 186c6a5 commit 4d3d0da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simvue/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ def _add_metrics_to_dispatch(
947947
self,
948948
metrics: dict[str, typing.Union[int, float]],
949949
step: typing.Optional[int] = None,
950-
time: typing.Optional[int] = None,
950+
time: typing.Optional[float] = None,
951951
timestamp: typing.Optional[str] = None,
952952
join_on_fail: bool = True,
953953
) -> bool:
@@ -993,7 +993,7 @@ def log_metrics(
993993
self,
994994
metrics: dict[str, typing.Union[int, float]],
995995
step: typing.Optional[int] = None,
996-
time: typing.Optional[int] = None,
996+
time: typing.Optional[float] = None,
997997
timestamp: typing.Optional[str] = None,
998998
) -> bool:
999999
"""Log metrics to Simvue server

0 commit comments

Comments
 (0)