Skip to content

Commit fb17c84

Browse files
committed
Added grpc names for some APIs
1 parent de1fbe5 commit fb17c84

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

build/templates/_grpc_stub_interpreter.py.mako

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ from . import errors as errors
2222
from . import ${proto_name}_pb2 as grpc_types
2323
from . import ${proto_name}_pb2_grpc as ${module_name}_grpc
2424
from . import session_pb2 as session_grpc_types
25+
from . import nidevice_pb2 as grpc_complex_types
2526
% for c in config['custom_types']:
2627

2728
from . import ${c['file_name']} as ${c['file_name']} # noqa: F401

build/templates/_grpc_stub_interpreter.py/numpy_write_method.py.mako

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@
3232
% for p in numpy_complex_params:
3333
% if p['original_type'] == 'NIComplexNumber[]':
3434
${p['python_name']}_list = [
35-
grpc_types.NIComplexNumber(real=val.real, imaginary=val.imag)
35+
grpc_complex_types.NIComplexNumber(real=val.real, imaginary=val.imag)
3636
for val in ${p['python_name']}.ravel()
3737
]
3838
% elif p['original_type'] == 'NIComplexNumberF32[]':
3939
${p['python_name']}_list = [
40-
grpc_types.NIComplexNumberF32(real=val.real, imaginary=val.imag)
40+
grpc_complex_types.NIComplexNumberF32(real=val.real, imaginary=val.imag)
4141
for val in ${p['python_name']}.ravel()
4242
]
4343
% elif p['original_type'] == 'NIComplexI16[]':
4444
${p['python_name']}_list = [
45-
grpc_types.NIComplexI16(real=int(val['real']), imaginary=int(val['imag']))
45+
grpc_complex_types.NIComplexI16(real=int(val['real']), imaginary=int(val['imag']))
4646
for val in ${p['python_name']}.ravel()
4747
]
4848
% endif

src/nirfsg/metadata/functions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5341,6 +5341,7 @@
53415341
'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.'
53425342
},
53435343
'name': 'waveformDataArray',
5344+
'grpc_name': 'wfmData',
53445345
'numpy': True,
53455346
'size': {
53465347
'mechanism': 'len',
@@ -5416,6 +5417,7 @@
54165417
'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.'
54175418
},
54185419
'name': 'waveformDataArray',
5420+
'grpc_name': 'wfmData',
54195421
'numpy': True,
54205422
'size': {
54215423
'mechanism': 'len',
@@ -5491,6 +5493,7 @@
54915493
'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.'
54925494
},
54935495
'name': 'waveformDataArray',
5496+
'grpc_name': 'wfmData',
54945497
'numpy': True,
54955498
'size': {
54965499
'mechanism': 'len',

0 commit comments

Comments
 (0)