Skip to content

Legacy live test - Units transform test - #11880

Merged
Nir-Az merged 24 commits into
realsenseai:developmentfrom
noacoohen:legacy_live_test_ut
Jun 21, 2023
Merged

Nir-Az merged 24 commits into
realsenseai:developmentfrom
noacoohen:legacy_live_test_ut

Conversation

@noacoohen

Copy link
Copy Markdown
Contributor

LRS-683

@noacoohen
noacoohen requested a review from Nir-Az June 6, 2023 14:54
@@ -0,0 +1,100 @@
# License: Apache 2.0. See LICENSE file in root directory.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I suggest not to have a single file with all the test.
Lets make a test file for every test group.

This way if some tests will be unstable it will state the name and you will know exactly which one without investigating each time

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.

changed

@Nir-Az
Nir-Az requested a review from remibettan June 11, 2023 07:58

@remibettan remibettan 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.

LGTM

depth_distance = ut.process(f)

origin_frame = np.hstack(np.asarray(f.get_data(), dtype=np.uint16))
ut_frame = np.hstack(np.asarray(depth_distance.get_data())).view(dtype=np.float32)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What?? :)
It was solved without needing to change the wrapper code??


temp_dir = tempfile.gettempdir()
log_filename = os.path.join(temp_dir, 'port_legacy.log')
rs.log_to_file(rs.log_severity.debug, 'port_legacy.log')

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why do we need to log to a file?
Maybe those 3 lines are not necessary?

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.

removed

@Nir-Az Nir-Az closed this Jun 20, 2023
@Nir-Az Nir-Az reopened this Jun 20, 2023
@Nir-Az
Nir-Az merged commit 9ccba1f into realsenseai:development Jun 21, 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