Skip to content

Commit fd32da7

Browse files
vnktshr21vnktshr21ni-jfitzger
authored
Adding Write Arb API and system tests and misc fixes (#2115)
* committing initial misc changes * fixes based on testing * Run nirfsg system tests as part of system test workflows * Fix nirfsg_arb_waveform.py::test_example * Fix nirfsg_script.py::test_example * fixed datetime creation and repcap for location api and disabled s2p test for linux * few review comment fixes --------- Co-authored-by: vnktshr21 <[email protected]> Co-authored-by: Jay Fitzgerald <[email protected]>
1 parent a488e07 commit fd32da7

23 files changed

+1919
-554
lines changed

.github/workflows/github_actions_aws_rhel_python64.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
- nidmm
3636
- nifgen
3737
- nimodinst
38+
- nirfsg
3839
- niscope
3940
- niswitch
4041
- nitclk

.github/workflows/github_actions_aws_windows_python32.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- nifgen
3838
- nidcpower
3939
- nidmm
40+
- nirfsg
4041
- niscope
4142
- nimodinst
4243
- nise

.github/workflows/github_actions_aws_windows_python64.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
- nifgen
5252
- nidcpower
5353
- nidmm
54+
- nirfsg
5455
- niscope
5556
- nimodinst
5657
- nise

build/templates/session.py/datetime_wrappers.py.mako

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@
99
output_params_list.append(p['python_name'])
1010
1111
output_params = ', '.join(output_params_list)
12+
include_second = False
13+
if "second" in output_params_list:
14+
include_second = True
1215
%>\
1316
def ${f['python_name']}(${helper.get_params_snippet(f, helper.ParameterUsageOptions.SESSION_METHOD_DECLARATION)}):
1417
'''${f['python_name']}
1518

1619
${helper.get_function_docstring(f, False, config, indent=8)}
1720
'''
1821
${output_params} = self.${called_function['python_name']}(${helper.get_params_snippet(f, helper.ParameterUsageOptions.SESSION_METHOD_CALL)})
22+
%if include_second is False:
1923
return hightime.datetime(year, month, day, hour, minute)
24+
%else:
25+
return hightime.datetime(year, month, day, hour, minute, second)
26+
%endif

0 commit comments

Comments
 (0)