Skip to content

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

Merged
maloel merged 12 commits into
realsenseai:developmentfrom
noacoohen:test-post-processing-from-bag
Nov 28, 2023
Merged

port tests post-processing-from bag to python#12402
maloel merged 12 commits into
realsenseai:developmentfrom
noacoohen:test-post-processing-from-bag

Conversation

@noacoohen

@noacoohen noacoohen commented Nov 14, 2023

Copy link
Copy Markdown
Contributor

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

Tracked on LRS-872

@noacoohen
noacoohen requested a review from Nir-Az November 14, 2023 10:33
@Nir-Az
Nir-Az requested a review from maloel November 14, 2023 12:55
Comment thread unit-tests/live/CMakeLists.txt Outdated
Comment thread wrappers/python/pyrs_sensor.cpp Outdated
Comment thread wrappers/python/pyrs_sensor.cpp
Comment thread wrappers/python/pyrs_processing.cpp
Comment thread unit-tests/live/CMakeLists.txt Outdated
Comment thread unit-tests/post-processing/test-post-processing-from-bag.py Outdated
Comment thread unit-tests/post-processing/test-post-processing-from-bag.py Outdated
Comment thread unit-tests/post-processing/test-post-processing-from-bag.py Outdated
Comment thread unit-tests/post-processing/test-post-processing-from-bag.py Outdated
frames_data_map[sensor_name] = (bytearray(frame.get_data()), frame.get_profile().as_video_stream_profile())


def get_frames(callback):

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment thread unit-tests/post-processing/test-post-processing-from-bag.py

@maloel maloel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

MUCH better

@maloel

maloel commented Nov 27, 2023

Copy link
Copy Markdown
Contributor

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!


def playback_file(file, callback):
global playback_status
global playback_status, sensors

Copy link
Copy Markdown
Contributor

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 realsenseai:development Nov 28, 2023
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