-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Labels
Description
Description of issue
In the construction or Session
, the dictionary options
is processed by a non-public converter object: _converters.convert_init_with_options_dictionary
.
This is basically a mapping to convert the keys from the dictionary into other keys suitable for the driver.
The issue is related to the following keys:
-
query_instrument_status
, which is not processed because in the converter's mapping it does not exist as is (we havequeryinstrstatus
orquery_instr_status
); -
record_value_coersions
, for two reasons- there is a typo in the documented key name (docstring), as it should be
record_value_coercions
; - in either case, it will never be processed because in the converter's mapping it does not exist as is (we have
recordcoercions
orrecord_coercions
)
- there is a typo in the documented key name (docstring), as it should be
System report
The following error is raised when we pass the query_instrument_status: False
option:
Driver error: -1074134965: IVI: The option string parameter contains an entry with an unknown option name/
query_instrument_status.
Steps to reproduce issue
import nidcpower
ivi_session_options = {
cache=True,
interchange_check=False,
query_instrument_status = False,
range_check=True,
record_value_coersions = False,
simulate=True,
}
instrument_session = nidcpower.Session(
resource_name='PXI1Slot2',
channels=None,
reset=True,
options=ivi_session_options,
independent_channels=True
)
- Prepare one of the faulty option, as described above.
- Initialise a Session with the faulty option.
- Observe the error.