Skip to content

guard against auto-downsample oscillation#2726

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
pijyoi:break-ads-oscillation
Jun 3, 2023
Merged

guard against auto-downsample oscillation#2726
j9ac9k merged 1 commit intopyqtgraph:masterfrom
pijyoi:break-ads-oscillation

Conversation

@pijyoi
Copy link
Copy Markdown
Contributor

@pijyoi pijyoi commented May 19, 2023

This PR attempts to fix #2713 where for particularly large data sets, the auto-downsampled value never stabilizes and instead oscillates between two values.

If a newly computed auto-downsample value differs very little from the previous calculated value, then the previous value is used instead.

@pijyoi pijyoi force-pushed the break-ads-oscillation branch from 9ffc119 to 9a978fc Compare May 21, 2023 13:13
@pijyoi pijyoi marked this pull request as ready for review May 21, 2023 13:16
@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Jun 3, 2023

I'm going to go ahead and merge this despite not hearing from the author of the issue. The diff LGTM. Thanks @pijyoi

@j9ac9k j9ac9k merged commit 67164a0 into pyqtgraph:master Jun 3, 2023
@pijyoi pijyoi deleted the break-ads-oscillation branch June 3, 2023 22:03
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.

Program loops indefinitely when I start an application with plot set on autosampling.

2 participants