Skip to content

Commit cf435c0

Browse files
batzuuUtkarsh Tyagi
andauthored
NI-RFSG Fix gRPC metadata name mismatches (#2136)
* function metadata changes * limit scope of changes to grpc name mismatch --------- Co-authored-by: Utkarsh Tyagi <[email protected]>
1 parent 7712396 commit cf435c0

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

src/nirfsg/metadata/functions.py

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@
166166
'description': 'Pass the ID of an attribute.'
167167
},
168168
'name': 'attribute',
169+
'grpc_name': 'attribute_id',
169170
'type': 'ViAttr',
170171
'use_array': False,
171172
'use_in_python_api': True
@@ -225,6 +226,7 @@
225226
'description': 'Pass the ID of an attribute.'
226227
},
227228
'name': 'attribute',
229+
'grpc_name': 'attribute_id',
228230
'type': 'ViAttr',
229231
'use_array': False,
230232
'use_in_python_api': True
@@ -285,6 +287,7 @@
285287
'description': 'Pass the ID of an attribute.'
286288
},
287289
'name': 'attribute',
290+
'grpc_name': 'attribute_id',
288291
'type': 'ViAttr',
289292
'use_array': False,
290293
'use_in_python_api': True
@@ -345,6 +348,7 @@
345348
'description': 'Pass the ID of an attribute.'
346349
},
347350
'name': 'attribute',
351+
'grpc_name': 'attribute_id',
348352
'type': 'ViAttr',
349353
'use_array': False,
350354
'use_in_python_api': True
@@ -405,6 +409,7 @@
405409
'description': 'Pass the ID of an attribute.'
406410
},
407411
'name': 'attribute',
412+
'grpc_name': 'attribute_id',
408413
'type': 'ViAttr',
409414
'use_array': False,
410415
'use_in_python_api': True
@@ -464,6 +469,7 @@
464469
'description': 'Pass the ID of an attribute.'
465470
},
466471
'name': 'attribute',
472+
'grpc_name': 'attribute_id',
467473
'type': 'ViAttr',
468474
'use_array': False,
469475
'use_in_python_api': True
@@ -1041,7 +1047,7 @@
10411047
'description': 'Specifies the active edge for the digital edge Script Trigger. NI-RFSG sets the NIRFSG_ATTR_DIGITAL_EDGE_SCRIPT_TRIGGER_EDGE attribute to this value.'
10421048
},
10431049
'enum': 'ScriptTriggerDigitalEdgeEdge',
1044-
'grpc_enum': None,
1050+
'grpc_enum': 'DigitalEdgeEdge',
10451051
'name': 'edge',
10461052
'type': 'ViInt32',
10471053
'use_array': False,
@@ -1093,7 +1099,7 @@
10931099
'description': 'Specifies the active edge for the Start Trigger. NI-RFSG sets the NIRFSG_ATTR_DIGITAL_EDGE_START_TRIGGER_EDGE attribute to this value.'
10941100
},
10951101
'enum': 'StartTriggerDigitalEdgeEdge',
1096-
'grpc_enum': None,
1102+
'grpc_enum': 'DigitalEdgeEdge',
10971103
'name': 'edge',
10981104
'type': 'ViInt32',
10991105
'use_array': False,
@@ -2268,6 +2274,7 @@
22682274
'description': 'Pass the ID of an attribute.'
22692275
},
22702276
'name': 'attribute',
2277+
'grpc_name': 'attribute_id',
22712278
'type': 'ViAttr',
22722279
'use_array': False,
22732280
'use_in_python_api': True
@@ -2326,6 +2333,7 @@
23262333
'description': 'Pass the ID of an attribute.'
23272334
},
23282335
'name': 'attribute',
2336+
'grpc_name': 'attribute_id',
23292337
'type': 'ViAttr',
23302338
'use_array': False,
23312339
'use_in_python_api': True
@@ -2384,6 +2392,7 @@
23842392
'description': 'Pass the ID of an attribute.'
23852393
},
23862394
'name': 'attribute',
2395+
'grpc_name': 'attribute_id',
23872396
'type': 'ViAttr',
23882397
'use_array': False,
23892398
'use_in_python_api': True
@@ -2442,6 +2451,7 @@
24422451
'description': 'Pass the ID of an attribute.'
24432452
},
24442453
'name': 'attribute',
2454+
'grpc_name': 'attribute_id',
24452455
'type': 'ViAttr',
24462456
'use_array': False,
24472457
'use_in_python_api': True
@@ -2500,6 +2510,7 @@
25002510
'description': 'Pass the ID of an attribute.'
25012511
},
25022512
'name': 'attribute',
2513+
'grpc_name': 'attribute_id',
25032514
'type': 'ViAttr',
25042515
'use_array': False,
25052516
'use_in_python_api': True
@@ -2558,6 +2569,7 @@
25582569
'description': 'Pass the ID of an attribute.'
25592570
},
25602571
'name': 'attribute',
2572+
'grpc_name': 'attribute_id',
25612573
'type': 'ViAttr',
25622574
'use_array': False,
25632575
'use_in_python_api': True
@@ -3674,6 +3686,7 @@
36743686
'description': 'Returns a ViSession handle that you use to identify the NI-RFSG device in all subsequent NI-RFSG function calls.'
36753687
},
36763688
'name': 'newVi',
3689+
'grpc_name': 'vi',
36773690
'type': 'ViSession',
36783691
'use_array': False,
36793692
'use_in_python_api': True
@@ -4705,6 +4718,7 @@
47054718
'description': 'Pass the ID of an attribute.'
47064719
},
47074720
'name': 'attribute',
4721+
'grpc_name': 'attribute_id',
47084722
'type': 'ViAttr',
47094723
'use_array': False,
47104724
'use_in_python_api': True
@@ -4764,6 +4778,7 @@
47644778
'description': 'Pass the ID of an attribute.'
47654779
},
47664780
'name': 'attribute',
4781+
'grpc_name': 'attribute_id',
47674782
'type': 'ViAttr',
47684783
'use_array': False,
47694784
'use_in_python_api': True
@@ -4824,6 +4839,7 @@
48244839
'description': 'Pass the ID of an attribute.'
48254840
},
48264841
'name': 'attribute',
4842+
'grpc_name': 'attribute_id',
48274843
'type': 'ViAttr',
48284844
'use_array': False,
48294845
'use_in_python_api': True
@@ -4883,6 +4899,7 @@
48834899
'description': 'Pass the ID of an attribute.'
48844900
},
48854901
'name': 'attribute',
4902+
'grpc_name': 'attribute_id',
48864903
'type': 'ViAttr',
48874904
'use_array': False,
48884905
'use_in_python_api': True
@@ -4943,6 +4960,7 @@
49434960
'description': 'Pass the ID of an attribute.'
49444961
},
49454962
'name': 'attribute',
4963+
'grpc_name': 'attribute_id',
49464964
'type': 'ViAttr',
49474965
'use_array': False,
49484966
'use_in_python_api': True
@@ -5002,6 +5020,7 @@
50025020
'description': 'Pass the ID of an attribute.'
50035021
},
50045022
'name': 'attribute',
5023+
'grpc_name': 'attribute_id',
50055024
'type': 'ViAttr',
50065025
'use_array': False,
50075026
'use_in_python_api': True
@@ -5346,6 +5365,7 @@
53465365
'description': 'Specifies the array of data to load into the waveform. The array must have at least as many elements as the value in the **size_in_samples** parameter in the nirfsg_AllocateArbWaveform function.'
53475366
},
53485367
'name': 'waveformDataArray',
5368+
'grpc_name': 'wfm_data',
53495369
'numpy': True,
53505370
'size': {
53515371
'mechanism': 'len',
@@ -5421,6 +5441,7 @@
54215441
'description': 'Specifies the array of data to load into the waveform. The array must have at least as many elements as the value in the **size_in_samples** parameter in the nirfsg_AllocateArbWaveform function.'
54225442
},
54235443
'name': 'waveformDataArray',
5444+
'grpc_name': 'wfm_data',
54245445
'numpy': True,
54255446
'size': {
54265447
'mechanism': 'len',
@@ -5496,6 +5517,7 @@
54965517
'description': 'Specifies the array of data to load into the waveform. The array must have at least as many elements as the value in the **size_in_samples** parameter in the nirfsg_AllocateArbWaveform function.'
54975518
},
54985519
'name': 'waveformDataArray',
5520+
'grpc_name': 'wfm_data',
54995521
'numpy': True,
55005522
'size': {
55015523
'mechanism': 'len',

0 commit comments

Comments
 (0)