We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 320ec80 commit 2b72599Copy full SHA for 2b72599
1 file changed
visual_behavior/devices.py
@@ -50,6 +50,8 @@
50
'localhost': 'localhost'
51
}
52
53
+RIG_NAME = {k.lower(): v for k, v in iteritems(RIG_NAME))
54
+
55
COMPUTER_NAME = dict((v, k) for k, v in iteritems(RIG_NAME))
56
57
@@ -71,7 +73,7 @@ def get_rig_id(in_val, input_type='computer_name'):
71
73
specifies whether `in_val` is a computer name or rig_id
72
74
'''
75
if input_type == 'computer_name' and in_val in RIG_NAME.keys():
- return RIG_NAME[in_val]
76
+ return RIG_NAME[in_val.lower()]
77
elif input_type == 'rig_id' and in_val in COMPUTER_NAME.keys():
78
return COMPUTER_NAME[in_val]
79
else:
0 commit comments