-
Notifications
You must be signed in to change notification settings - Fork 9
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
PSQ_DAScale/PSQ_DS_ADAPT: Fix DAScale estimation after fill-in #2241
Merged
Conversation
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
t-b
force-pushed
the
bugfix/2241-adaptive-supra-dascale-calculation
branch
from
August 21, 2024 19:26
11ce187
to
87e194a
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
t-b
changed the title
PSQ_DAScale/PSQ_DS_ADAPT: Fix DAScale estimation after fillin
PSQ_DAScale/PSQ_DS_ADAPT: Fix DAScale estimation after fill-in
Aug 22, 2024
This comment was marked as outdated.
This comment was marked as outdated.
t-b
force-pushed
the
bugfix/2241-adaptive-supra-dascale-calculation
branch
from
September 3, 2024 07:44
87e194a
to
63b05d5
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Data from AdaptiveSupraExpWithLatestFix.zip (Date 4.09.24) has multiple MIES versions used:
this MR is 87e194a (PSQ_DS_GetValuesOfLargestAPFreq: Only fetch passing data, 2024-08-21). Mapping from sweepbrowser to experiment:
|
First experiment I'm looking at (arbitrarily selected):
|
This comment was marked as outdated.
This comment was marked as outdated.
When we have filled in AP frequencies via PSQ_DS_GatherOvershootCorrection and don't have any futureDAScales left to measure, we need to calculate a new DAscale value via PSQ_DS_CalculateDAScale. But before this commit we did pass in the fI slope/offset, apfreq, DAScale from the just filled in sweep, which is wrong. We need to pass in the data from the sweep with the highest AP frequency to continue our search. To complicate things even more we need to search backwards and use the most recent sweep. Bug present since feaf86f (PSQ_DaScale: Add new operation mode Adaptive Suprathreshold, 2023-10-20).
It makes no difference from the behaviour because we are only called if the sweep passed and we have no futureDAScale values, but it makes the code easier to grasp.
Bug introduced in 68e1ce7 (PSQ_DAScale: Fix DAScale estimation for PSQ_DS_ADAPT, 2024-08-21).
In 68e1ce7 (PSQ_DAScale: Fix DAScale estimation for PSQ_DS_ADAPT, 2024-08-21) we introduced a new way to calculate the new DASCale for passing sweeps when we have no future DAScale values left. The idea was sound, but failed to see that we should use the values from the sweep with the largest DAScale value and not AP freq.
t-b
force-pushed
the
bugfix/2241-adaptive-supra-dascale-calculation
branch
from
September 6, 2024 21:00
63b05d5
to
8bfcc37
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Broken since 3f255d4 (PSQ_DS_GetLabnotebookData: Add PSQ_DS_FI_OFFSET, 2024-08-21).
By accepting labnotebook waves directly we allow to use these functions also post-mortem on existing data.
timjarsky
approved these changes
Sep 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Close #2224