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

DM-34922: Report ptc turnoff in ptcDataset from cpPtcSolve #132

Merged
merged 2 commits into from May 26, 2022

Conversation

plazas
Copy link
Contributor

@plazas plazas commented May 25, 2022

No description provided.

@plazas plazas requested a review from czwa May 25, 2022 20:48

# Save the point where the variance starts decreasing as the
# PTC turnoff point
ptcTurnoff = meanVecOriginal[goodPoints][-1]
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need to check that there more than zero goodPoints? Otherwise this will throw an IndexError.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I think goodPoints will always be the same length as meanVecOriginal, but it could be that all its points are False, so this would fail. We do check for that possibility a few lines below and declare the amp as bad if it happens, so I will move these lines with the turnoff after that check is done.

@plazas plazas merged commit e0f8453 into main May 26, 2022
@plazas plazas deleted the tickets/DM-34922 branch May 26, 2022 13:44
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.

None yet

2 participants