-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bulk sensor sampling feature (#197)
* Start adding bulk sensor sampling feature Setting the sampling strategies on KATCP devices with large numbers of sensors is slow. E.g. a device with 10k sensors can take more than a minute, doing it one sensor at time. Setting the strategies in bulk requires less roundtrips, making it quicker. This feature is not enabled by default. Still WIP. Tests must be added. JIRA: CB-2748 * Add bulk sampling flag to ProtocolFlags docstring * Fix some linting issues Linter is a bit stricter, 3 years later. JIRA: MT-1862 * Add bulk sampling tests for ProtocolFlags JIRA: MT-1862 * Fix the reply parameters for 'differential-rate' strategy. * Add 'sensor-sampling' test for protocol 5.x * Simplify 'sensor-sampling' test Do not access private strategy variables to reduce test coupling. * Update ?sensor-sampling Docstring. In preparation for bulk sensor sampling implementation. * Add new tests for DeviceServer5.1 Update bulk sensor handlind method for list of sensors separated by comma. * Update bulk_sensor_sampling method to handle list of sensors * adding unittests for bulk sensor sampling * Fix indentation issues in test_server JIRA: MT-1862 * Add tests to check for invalid strategy, invalid strategy and parameters * Add new test to check bulk sensor sampling fails for invalid strategy and invalid parameters Fix request naming typo * Fix parameter list to mock request * improve ?sensor-sampling error message for multi-sensor query * improve ?sensor-sampling error message for multi-sensor query * Handle python3 byte-strings * Add test to check various parameters on sensors individually * Use latest version of coverage * address PR comments * fix typo * Fix typos in in-line comments and compare strategies properly in test * lint diff * Fix example informs for sensor-status and value Status field was missing. Co-authored-by: Mpho Mphego <[email protected]> Co-authored-by: amakhaba <[email protected]> Co-authored-by: Buntu <[email protected]> Co-authored-by: lanceWilliams <[email protected]>
- Loading branch information
1 parent
f3060e9
commit 5fa8a6a
Showing
9 changed files
with
429 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.