You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add string enums for applicable attributes and method parameters in nirfsg (#2150)
* adding back string enums in src
* added all changes after integration
* changed to properties
Co-authored-by: Jay Fitzgerald <[email protected]>
* sorted changelog
---------
Co-authored-by: Jay Fitzgerald <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1691,17 +1691,25 @@
1691
1691
#### [nirfsg] Unreleased
1692
1692
- Added
1693
1693
- Changed
1694
-
- Fixed the return type of `get_all_script_names` and `get_all_named_waveform_names` to remove the size parameter and return a list of strings instead of a comma-separated string
1694
+
- Added default value for `module` parameter in `get_self_cal_last_date_and_time` and `get_self_calibration_temperature` methods to align with documentation and allow duck-typing
1695
1695
- Changed the parameter name for waveform name from `name` to `waveform_name` in `clear_arb_waveform` and `select_arb_waveform` to be consistent with other waveform methods
1696
1696
- Changed the name of below methods to be consistent with other APIs in the repository
1697
1697
- `get_self_calibration_last_date_and_time` to `get_self_cal_last_date_and_time`
1698
1698
- `get_external_calibration_last_date_and_time` to `get_ext_cal_last_date_and_time`
1699
-
- Added default value for `module` parameter in `get_self_cal_last_date_and_time` and `get_self_calibration_temperature` methods to align with documentation and allow duck-typing
1700
-
- Updated `self_test` to not have any parameters, aligning with other APIs in the repository
1701
1699
- Changed `frequency_settling` property to be of type float instead of hightime.timedelta, since it can have multiple interpretation based on `frequency_settling_units` property value
1702
1700
- Changed `interpolation_delay` and `relative_delay` properties to be of type hightime.timedelta, so that it aligns with _delay_ attributes across other APIs in the repository
1703
-
- Updated `wait_until_settled` method to have `max_time_milliseconds` parameter as type hightime.timedelta with a default value of 10 seconds
1704
1701
- Changed `exported_ref_clock_rate` and `ref_clock_rate` properties to be of type float instead of enum, since the enums just represented raw float values
1702
+
- Fixed the return type of `get_all_script_names` and `get_all_named_waveform_names` to remove the size parameter and return a list of strings instead of a comma-separated string
1703
+
- Updated `self_test` to not have any parameters, aligning with other APIs in the repository
1704
+
- Updated `wait_until_settled` method to have `max_time_milliseconds` parameter as type hightime.timedelta with a default value of 10 seconds
1705
+
- Updated below properties and method parameters to be of string enum type instead of plain string, since they would support only fixed set of strings
Copy file name to clipboardExpand all lines: docs/nirfsg/class.rst
+55-55Lines changed: 55 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2310,7 +2310,7 @@ send_software_edge_trigger
2310
2310
.. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed.
0 commit comments