Skip to content

Commit 5c76cb1

Browse files
Updated the helper scripts and mako templates
1 parent a844cc9 commit 5c76cb1

File tree

13 files changed

+107
-114
lines changed

13 files changed

+107
-114
lines changed

build/helper/metadata_add_all.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,8 @@ def add_all_config_metadata(config):
722722
if 'uses_nitclk' not in config:
723723
config['uses_nitclk'] = False
724724

725-
if 'rep_cap_expansion' not in config:
726-
config['rep_cap_expansion'] = 'session'
725+
if 'repeated_capability_object_type' not in config:
726+
config['repeated_capability_object_type'] = {'python': 'session'}
727727

728728
return config
729729

build/templates/session.py.mako

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class _Lock(object):
9191
% endif
9292
% if len(config['repeated_capabilities']) > 0:
9393

94-
% if config.get('repeated_capability_object_type', {}).get('python', 'session') == 'custom':
94+
% if config['repeated_capability_object_type']['python'] == 'custom':
9595
# Dynamically handle repeated capabilities
9696
% for rep_cap in config['repeated_capabilities']:
9797

@@ -263,7 +263,7 @@ constructor_params = helper.filter_parameters(init_function['parameters'], helpe
263263
% if len(config['repeated_capabilities']) > 0:
264264
# Instantiate any repeated capability objects
265265
% for rep_cap in config['repeated_capabilities']:
266-
% if config.get('repeated_capability_object_type', {}).get('python', 'session') == 'custom':
266+
% if config['repeated_capability_object_type']['python'] == 'custom':
267267
self.${rep_cap['python_name']} = _RepeatedCapability${rep_cap['python_name'].capitalize()}(self, repeated_capability_list)
268268
% else:
269269
self.${rep_cap['python_name']} = _RepeatedCapabilities(self, '${rep_cap["prefix"]}', repeated_capability_list)

docs/nidcpower/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Additional Documentation
1919

2020
Refer to your driver documentation for device-specific information and detailed API documentation.
2121

22-
For drivers other than nirfsg, refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
22+
Refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
2323

2424
.. include:: ../_static/license.inc
2525

docs/nidigital/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Additional Documentation
1919

2020
Refer to your driver documentation for device-specific information and detailed API documentation.
2121

22-
For drivers other than nirfsg, refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
22+
Refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
2323

2424
.. include:: ../_static/license.inc
2525

docs/nidmm/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Additional Documentation
1919

2020
Refer to your driver documentation for device-specific information and detailed API documentation.
2121

22-
For drivers other than nirfsg, refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
22+
Refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
2323

2424
.. include:: ../_static/license.inc
2525

docs/nifgen/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Additional Documentation
1919

2020
Refer to your driver documentation for device-specific information and detailed API documentation.
2121

22-
For drivers other than nirfsg, refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
22+
Refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
2323

2424
.. include:: ../_static/license.inc
2525

docs/nimodinst/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Additional Documentation
1919

2020
Refer to your driver documentation for device-specific information and detailed API documentation.
2121

22-
For drivers other than nirfsg, refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
22+
Refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
2323

2424
.. include:: ../_static/license.inc
2525

docs/niscope/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Additional Documentation
1919

2020
Refer to your driver documentation for device-specific information and detailed API documentation.
2121

22-
For drivers other than nirfsg, refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
22+
Refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
2323

2424
.. include:: ../_static/license.inc
2525

docs/nise/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Additional Documentation
1919

2020
Refer to your driver documentation for device-specific information and detailed API documentation.
2121

22-
For drivers other than nirfsg, refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
22+
Refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
2323

2424
.. include:: ../_static/license.inc
2525

docs/niswitch/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Additional Documentation
1919

2020
Refer to your driver documentation for device-specific information and detailed API documentation.
2121

22-
For drivers other than nirfsg, refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
22+
Refer to the `nimi-python Read the Docs project <https://nimi-python.readthedocs.io/en/stable/>`_ for documentation of versions 1.4.4 of the module or earlier.
2323

2424
.. include:: ../_static/license.inc
2525

0 commit comments

Comments
 (0)