Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: pass the count parameter along, as already documented. #1137

Merged
merged 3 commits into from
Oct 13, 2023

Conversation

clintonroy
Copy link
Contributor

The lowest layer of pv.get accepts a count, which specifies how many array values to return. This count argument was not percolated all the way up the api stack, but was documented.

I require this to be able to retrieve values from a data acquisition device that can have a very large array of results, and the default value (2048) is way too small.

pv,
timeout,
connection_timeout,
count,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit torn, on one hand adding new positionals in the middle is a source of latent bugs, but on the other hand all of the positionals are required so any usage is fully broken (TypeError: missing parameter) rather than the subtle "all your inputs are shifted".

On net I think it is 👍🏻 , just set off alarms in my head.

Copy link
Member

@mrakitin mrakitin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks, @clintonroy!

@mrakitin mrakitin closed this Oct 10, 2023
@mrakitin mrakitin reopened this Oct 10, 2023
@mrakitin
Copy link
Member

Power-cycled the CI to check they still succeed against the latest version.

@prjemian
Copy link
Contributor

Consider adding an option to the workflow to run the unit tests manually.

image

@mrakitin
Copy link
Member

There was a recent fix to the tests (#1167), I hope it will help resolve the failing runs after my rebase on master.

@mrakitin mrakitin merged commit 9a0bf3f into bluesky:master Oct 13, 2023
@clintonroy clintonroy deleted the count branch November 17, 2023 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants