-
Notifications
You must be signed in to change notification settings - Fork 0
Add default value to nislsc python api #67
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
base: main
Are you sure you want to change the base?
Changes from all commits
3bdf708
077ce2a
646ecac
7dd42d6
fdd3ed9
0bf3a56
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,12 +55,12 @@ def get_command_and_property_tree(device_name: str) -> dict: | |
| reservation_timeout = 10.0 | ||
|
|
||
| with Session.initialize_session_with_devices( | ||
| None, | ||
| device_name, | ||
| connection_timeout, | ||
| reservation_access, | ||
| reservation_group, | ||
| reservation_timeout, | ||
| library=None, | ||
| connection_timeout=connection_timeout, | ||
| reservation_timeout=reservation_timeout, | ||
| ) as session: | ||
|
|
||
| data = { | ||
|
|
@@ -70,18 +70,18 @@ def get_command_and_property_tree(device_name: str) -> dict: | |
| } | ||
|
|
||
| device_commands = session.get_device_property_string_array( | ||
| device_name, | ||
| DeviceProperty.COMMANDS, | ||
| device_name, | ||
| ) | ||
|
|
||
| device_properties = session.get_device_property_string_array( | ||
| device_name, | ||
| DeviceProperty.PROPERTIES, | ||
| device_name, | ||
| ) | ||
|
|
||
| device_physical_channels = session.get_device_property_string_array( | ||
| device_name, | ||
| DeviceProperty.PHYSICAL_CHANNELS, | ||
| device_name, | ||
| ) | ||
|
|
||
| for physical_channel in device_physical_channels: | ||
|
|
@@ -138,10 +138,10 @@ def get_command_and_property_tree(device_name: str) -> dict: | |
| for physical_channel in device_physical_channels: | ||
|
|
||
| physical_channel_commands = session.get_physical_channel_property_string_array( | ||
| physical_channel, PhysicalChannelProperty.COMMANDS | ||
| PhysicalChannelProperty.COMMANDS, physical_channel | ||
| ) | ||
| physical_channel_properties = session.get_physical_channel_property_string_array( | ||
| physical_channel, PhysicalChannelProperty.PROPERTIES | ||
| PhysicalChannelProperty.PROPERTIES, physical_channel | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bkeryan With |
||
| ) | ||
|
|
||
| for physical_channel_command in physical_channel_commands: | ||
|
|
||
Large diffs are not rendered by default.
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.
Same for
library. We now default this too.