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

debug & T265 improvements in rspy.devices #8700

Merged
merged 3 commits into from
Mar 31, 2021

Conversation

maloel
Copy link
Collaborator

@maloel maloel commented Mar 30, 2021

No description provided.

@maloel maloel requested a review from MMirbach March 30, 2021 12:45
@@ -48,7 +48,16 @@ def __init__( self, sn, dev ):
self._product_line = None
if dev.supports( rs.camera_info.product_line ):
self._product_line = dev.get_info( rs.camera_info.product_line )
self._port = acroname and _get_port_by_dev( dev )
self._physical_port = dev.supports( rs.camera_info.physical_port ) and dev.get_info( rs.camera_info.physical_port ) or None
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add parentheses so it's clear that the 'and' is before the 'or'?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

But and is always of greater precedence than or :)

split_location = [int(x) for x in usb_location.split('.') if int(x) > 0]
# only the last two digits are necessary
return acroname.get_port_from_usb( split_location[-2], split_location[-1] )
import re
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to appear in several locations. Maybe it's better to just import it at the beggining?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay, moved to beginning

@maloel maloel merged commit 64c4526 into IntelRealSense:development Mar 31, 2021
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