Skip to content

Conversation

@NicolasHug
Copy link
Contributor

@NicolasHug NicolasHug commented Oct 28, 2024

Also added tests, and use these new methods in the samplers.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 28, 2024
@NicolasHug NicolasHug marked this pull request as ready for review October 28, 2024 13:00
Comment on lines +305 to +310
expected_frame_info = NASA_VIDEO.get_frame_info(9)
assert frame9.pts_seconds == pytest.approx(expected_frame_info.pts_seconds)
assert isinstance(frame9.duration_seconds, float)
assert frame9.duration_seconds == pytest.approx(0.03337, rel=1e-3)
assert frame9.duration_seconds == pytest.approx(
expected_frame_info.duration_seconds, rel=1e-3
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a drive-by clean-up to remove hard-coded values.

@NicolasHug NicolasHug merged commit 97ca885 into meta-pytorch:main Oct 28, 2024
40 checks passed
@NicolasHug NicolasHug deleted the exposeee branch October 28, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants