Closed tom-vx51 closed 3 days ago
The changes involve an update to the getTime
function in the app/packages/looker/src/elements/util.ts
file. The implementation now includes a new variable time
, which calculates a value based on the input parameters. The function checks if time
is finite before returning it; if not, it returns 0.0
. This modification improves the function's error handling by preventing the return of non-finite values.
File Path | Change Summary |
---|---|
app/packages/looker/src/elements/util.ts | Updated getTime function to include a new variable time and modified return statement for error handling. |
In the land of code where rabbits play,
A function grew wiser, come what may.
With checks for the finite, it hops with glee,
No more strange values, just smooth as can be!
So let’s celebrate this change, oh so bright,
In the world of Looker, all feels just right! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
What changes are proposed in this pull request?
Prevent video time from getting assigned NaN when frame rate is undefined. This currently causes a crash during playback; with this change, playback will be disabled if the frame rate is undefined, but will not crash.
How is this patch tested? If it is not, please explain why.
local app
Release Notes
Is this a user-facing change that should be mentioned in the release notes?
(Details in 1-2 sentences. You can just refer to another PR with a description if this PR is part of a larger change.)
What areas of FiftyOne does this PR affect?
fiftyone
Python library changesSummary by CodeRabbit