Skip to content

Commit

Permalink
Get extended resource info in open_resource as we require the resourc…
Browse files Browse the repository at this point in the history
…e_class
  • Loading branch information
hgrecco committed Jul 29, 2015
1 parent def2d0a commit 5c802ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyvisa/highlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ def open_resource(self, resource_name,
"""

if resource_pyclass is None:
info = self.resource_info(resource_name, extended=False)
info = self.resource_info(resource_name, extended=True)

try:
resource_pyclass = self._resource_classes[(info.interface_type, info.resource_class)]
Expand Down

0 comments on commit 5c802ba

Please sign in to comment.