Skip to content

Simplify safety factor statistics calculation.#2288

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_947773274
Jul 16, 2026
Merged

Simplify safety factor statistics calculation.#2288
copybara-service[bot] merged 1 commit into
mainfrom
test_947773274

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jul 14, 2026

Copy link
Copy Markdown

Simplify safety factor statistics calculation.

Replace the error prone quadratic fitting routine with simpler logic.

For q min we simply return the min value.
For the intercepts we do linear interpolation of each interval and look for potential intercepts in each interval.

This fits better with making fewer assumptions on the underlying profile and fixes the buggy values returned by quadratic fits.

Replace the error prone quadratic fitting routine with simpler logic.

For q min we simply return the min value.
For the intercepts we do linear interpolation of each interval and look for potential intercepts in each interval.

This fits better with making fewer assumptions on the underlying profile and fixes the buggy values returned by quadratic fits.

PiperOrigin-RevId: 949037347
@copybara-service
copybara-service Bot merged commit e7b4e11 into main Jul 16, 2026
@copybara-service
copybara-service Bot deleted the test_947773274 branch July 16, 2026 17:14
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.

1 participant