Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test timestamp domain #10925

Merged
merged 10 commits into from
Oct 2, 2022
Merged

Conversation

Tamir91
Copy link
Contributor

@Tamir91 Tamir91 commented Sep 21, 2022

Tracked by LRS-492

@Tamir91 Tamir91 requested a review from Nir-Az September 21, 2022 13:02
Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

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

Congrats on your first PR 🥇

unit-tests/live/options/test-timestamp-domain.py Outdated Show resolved Hide resolved
unit-tests/live/options/test-timestamp-domain.py Outdated Show resolved Hide resolved
unit-tests/live/options/test-timestamp-domain.py Outdated Show resolved Hide resolved
unit-tests/live/options/test-timestamp-domain.py Outdated Show resolved Hide resolved
unit-tests/live/options/test-timestamp-domain.py Outdated Show resolved Hide resolved
unit-tests/live/options/test-timestamp-domain.py Outdated Show resolved Hide resolved
unit-tests/live/options/test-timestamp-domain.py Outdated Show resolved Hide resolved
time.sleep(0.7)
frame = frame_queue.wait_for_frame()

if frame_queue is None or frame_queue.size() == 0:
Copy link
Collaborator

Choose a reason for hiding this comment

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

if Not frame: ?

Copy link
Contributor Author

@Tamir91 Tamir91 Oct 2, 2022

Choose a reason for hiding this comment

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

"if" statement changed to:

    if not frame:

Copy link
Collaborator

Choose a reason for hiding this comment

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

Lets keep it simple, at this point of the code we only care about the frame right?
if not frame:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

wait_for_frame() function has timeout 5 sec. It raise Exception if not received frame?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, you are correct. so we don't even need if not frame: :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we will must to do one addition commit I will remove if not frame: ...

Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

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

Nice work!

@Nir-Az Nir-Az merged commit 3784fcf into IntelRealSense:development Oct 2, 2022
@Tamir91 Tamir91 deleted the test-timestamp-domain branch January 17, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants