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

port tests post-processing-from bag to python #12402

Merged

Conversation

noacoohen
Copy link
Contributor

@noacoohen noacoohen commented Nov 14, 2023

test align depth to color and test align color to depth
porting it from legacy live test to python tests

Tracked on LRS-872

frames_data_map[sensor_name] = (bytearray(frame.get_data()), frame.get_profile().as_video_stream_profile())


def get_frames(callback):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like this function, but not with the frame-list logic: it makes it less generic. Why should it know a frames_data_map, etc.? That logic should be in the caller of playback_file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

@maloel maloel left a comment

Choose a reason for hiding this comment

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

MUCH better

@maloel
Copy link
Collaborator

maloel commented Nov 27, 2023

After looking at it again after the refactor, the processing-block code is minimal and I have no problem with it.
I will withdraw #12440 and we can stay with the code as-is.
Good job!

@@ -71,7 +65,7 @@ def get_frames(callback):


def playback_file(file, callback):
global playback_status
global playback_status, sensors
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't like the sensors as global here...

@maloel maloel merged commit cab41f2 into IntelRealSense:development Nov 28, 2023
17 checks passed
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.

3 participants