Skip to content

Commit 0d44536

Browse files
author
Utkarsh Tyagi
committed
cleanup for exisiting grpc enums plus addition of grpc enum entries where required
1 parent cf435c0 commit 0d44536

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/nirfsg/metadata/functions.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@
237237
'description': 'Pass the value that you want to verify as a valid value for the attribute.',
238238
'note': 'Some of the values might not be valid depending on the current settings of the instrument session.'
239239
},
240-
'grpc_enum': 'NiRFSGInt32AttributeValues',
241240
'name': 'value',
242241
'type': 'ViInt32',
243242
'use_array': False,
@@ -298,7 +297,6 @@
298297
'description': 'Pass the value that you want to verify as a valid value for the attribute.',
299298
'note': 'Some of the values might not be valid depending on the current settings of the instrument session.'
300299
},
301-
'grpc_enum': 'NiRFSGInt64AttributeValues',
302300
'name': 'value',
303301
'type': 'ViInt64',
304302
'use_array': False,
@@ -359,7 +357,6 @@
359357
'description': 'Pass the value that you want to verify as a valid value for the attribute.',
360358
'note': 'Some of the values might not be valid depending on the current settings of the instrument session.'
361359
},
362-
'grpc_enum': 'NiRFSGReal64AttributeValues',
363360
'name': 'value',
364361
'type': 'ViReal64',
365362
'use_array': False,
@@ -480,7 +477,6 @@
480477
'description': 'Pass the value that you want to verify as a valid value for the attribute. The value must be a NULL-terminated string.',
481478
'note': 'Some of the values might not be valid depending on the current settings of the instrument session.'
482479
},
483-
'grpc_mapped_enum': 'NiRFSGStringAttributeValuesMapped',
484480
'name': 'value',
485481
'type': 'ViConstString',
486482
'use_array': False,
@@ -1026,6 +1022,7 @@
10261022
},
10271023
'is_repeated_capability': True,
10281024
'name': 'triggerId',
1025+
'grpc_enum': 'DigitalEdgeScriptTriggerIdentifier',
10291026
'repeated_capability_type': 'script_triggers',
10301027
'type': 'ViConstString',
10311028
'use_array': False,
@@ -1037,6 +1034,7 @@
10371034
'description': 'Specifies the source terminal for the digital edge Script Trigger. NI-RFSG sets the NIRFSG_ATTR_DIGITAL_EDGE_SCRIPT_TRIGGER_SOURCE attribute to this value.'
10381035
},
10391036
'name': 'source',
1037+
'grpc_enum': 'TriggerSource',
10401038
'type': 'ViConstString',
10411039
'use_array': False,
10421040
'use_in_python_api': True
@@ -1089,6 +1087,7 @@
10891087
'description': 'Specifies the source terminal for the digital edge trigger. NI-RFSG sets the NIRFSG_ATTR_DIGITAL_EDGE_START_TRIGGER_SOURCE attribute to this value.'
10901088
},
10911089
'name': 'source',
1090+
'grpc_enum': 'TriggerSource',
10921091
'type': 'ViConstString',
10931092
'use_array': False,
10941093
'use_in_python_api': True
@@ -1141,6 +1140,7 @@
11411140
},
11421141
'is_repeated_capability': True,
11431142
'name': 'triggerId',
1143+
'grpc_enum': 'DigitalEdgeScriptTriggerIdentifier',
11441144
'repeated_capability_type': 'script_triggers',
11451145
'type': 'ViConstString',
11461146
'use_array': False,
@@ -1419,6 +1419,7 @@
14191419
},
14201420
'is_repeated_capability': True,
14211421
'name': 'triggerId',
1422+
'grpc_enum': 'DigitalEdgeScriptTriggerIdentifier',
14221423
'repeated_capability_type': 'script_triggers',
14231424
'type': 'ViConstString',
14241425
'use_array': False,
@@ -1810,6 +1811,7 @@
18101811
},
18111812
'is_repeated_capability': True,
18121813
'name': 'triggerId',
1814+
'grpc_enum': 'DigitalEdgeScriptTriggerIdentifier',
18131815
'repeated_capability_type': 'script_triggers',
18141816
'type': 'ViConstString',
18151817
'use_array': False,
@@ -2046,7 +2048,6 @@
20462048
]
20472049
},
20482050
'enum': 'SparameterOrientation',
2049-
'grpc_enum': None,
20502051
'name': 'sparameterOrientation',
20512052
'type': 'ViInt32',
20522053
'use_array': False,
@@ -2958,7 +2959,6 @@
29582959
'description': 'Specifies from which stand-alone module to retrieve the last successful self-calibration date and time.'
29592960
},
29602961
'enum': 'Module',
2961-
'grpc_enum': None,
29622962
'name': 'module',
29632963
'type': 'ViInt32'
29642964
},
@@ -3039,7 +3039,6 @@
30393039
'description': 'Specifies from which stand-alone module to retrieve the last successful self-calibration date and time.'
30403040
},
30413041
'enum': 'Module',
3042-
'grpc_enum': None,
30433042
'name': 'module',
30443043
'type': 'ViInt32',
30453044
'use_array': False,
@@ -3306,6 +3305,7 @@
33063305
]
33073306
},
33083307
'name': 'signalIdentifier',
3308+
'grpc_enum': 'SignalIdentifier',
33093309
'type': 'ViConstString',
33103310
'use_array': False,
33113311
'use_in_python_api': True
@@ -4592,6 +4592,7 @@
45924592
]
45934593
},
45944594
'name': 'triggerIdentifier',
4595+
'grpc_enum': 'SignalIdentifier',
45954596
'type': 'ViConstString',
45964597
'use_array': False,
45974598
'use_in_python_api': True
@@ -4789,7 +4790,6 @@
47894790
'description': 'Specifies the value to which you want to set the attribute.',
47904791
'note': 'Some values may not be valid. The allowed values depend on the current settings of the instrument session.'
47914792
},
4792-
'grpc_enum': 'NiRFSGInt32AttributeValues',
47934793
'name': 'value',
47944794
'type': 'ViInt32',
47954795
'use_array': False,
@@ -4849,7 +4849,6 @@
48494849
'documentation': {
48504850
'description': 'Pass the value to which you want to set the attribute.\n\n<blockquote>\nSome values may not be valid. The allowed values depend on the current settings of the instrument session.\n</blockquote>'
48514851
},
4852-
'grpc_enum': 'NiRFSGInt64AttributeValues',
48534852
'name': 'value',
48544853
'type': 'ViInt64',
48554854
'use_array': False,
@@ -4910,7 +4909,6 @@
49104909
'description': 'Pass the value to which you want to set the attribute.',
49114910
'note': 'Some values may not be valid. The allowed values depend on the current settings of the instrument session.'
49124911
},
4913-
'grpc_enum': 'NiRFSGReal64AttributeValues',
49144912
'name': 'value',
49154913
'type': 'ViReal64',
49164914
'use_array': False,
@@ -5031,7 +5029,6 @@
50315029
'description': 'Pass the value to which you want to set the attribute.',
50325030
'note': 'Some values may not be valid. The allowed values depend on the current settings of the instrument session.'
50335031
},
5034-
'grpc_mapped_enum': 'NiRFSGStringAttributeValuesMapped',
50355032
'name': 'value',
50365033
'type': 'ViConstString',
50375034
'use_array': False,

0 commit comments

Comments
 (0)