-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Conversation
@@ -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 |
There was a problem hiding this comment.
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'?
There was a problem hiding this comment.
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
:)
unit-tests/py/rspy/devices.py
Outdated
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, moved to beginning
No description provided.