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

Fix: Testpulse calculation failed if TP data is NaN #1921

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

MichaelHuth
Copy link
Collaborator

In the case the test pulse data is completely NaN WaveStats can not determine V_minRowLoc and V_maxRowLoc and returns a -1 in both. This index was used unchecked and resulted in a RTE for invalid wave index access.

This is now checked properly and NaN is returned for "instantaneous".

since
c5ed168 (TP_TSAnalysis: Change the way we calculate the instantaneous resistance, 2022-09-02)

In the case the test pulse data is completely NaN WaveStats can not
determine V_minRowLoc and V_maxRowLoc and returns a -1 in both.
This index was used unchecked and resulted in a RTE for invalid
wave index access.

This is now checked properly and NaN is returned for "instantaneous".

since
c5ed168 (TP_TSAnalysis: Change the way we calculate the instantaneous resistance, 2022-09-02)
@MichaelHuth
Copy link
Collaborator Author

@t-b I could use some input here, as I can not reproduce the failing test with NI hardware. It does not seem to run in the TP analysis function.

@t-b
Copy link
Collaborator

t-b commented Oct 24, 2023

@MichaelHuth I don't think the test failure is real. I've approved and restarted the test.

@t-b t-b enabled auto-merge October 24, 2023 12:04
@t-b t-b merged commit a0eda3a into main Oct 24, 2023
16 checks passed
@t-b t-b deleted the bugfix/1921-TP_calculation_pending_RTE branch October 24, 2023 13:00
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.

2 participants