Skip to content

Commit

Permalink
a little more comment on val_mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcjohnson committed Feb 9, 2016
1 parent c5c318b commit db00d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qcodes/instrument/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def __init__(self, instrument, name,
parse_function: DEPRECATED - use get_parser instead
val_mapping: a bidirectional map from data/readable values to
instrument codes, expressed as a dict.
instrument codes, expressed as a dict {data_val: instrument_code}
For example, if the instrument uses '0' to mean 1V and '1' to mean
10V, set val_mapping={1: '0', 10: '1'} and on the user side you
only see 1 and 10, never the coded '0' and '1'
Expand Down

0 comments on commit db00d08

Please sign in to comment.