Conversation
added 30 commits
October 2, 2025 15:40
…lection, add save_pngs as bool, add fit_ok criteria, rename outputs
… fit status to fit_efficiency, get_10to90_range_fit
Merging main to have the correct definition of gaussian
…verbose, run_by_run to the steering
…atasets merged by thresholds, new outputs
…threshold in jitter estimation
Merging origin/main into fgalizzi
Merging Julio's commit before PR140 is merged
Jurenag contribution to fgalizzi dev branch
hvsouza
reviewed
Dec 18, 2025
|
|
||
| result = 0. | ||
|
|
||
| if operation == "sum": |
Member
There was a problem hiding this comment.
Suggestion:
# precompute squares once
e1_2 = e1 * e1
e2_2 = e2 * e2
p1_2 = p1 * p1
p2_2 = p2 * p2
match operation:
case "sum" | "sub":
result = math.sqrt(e1_2 + e2_2)
case "mul":
result = math.sqrt( e1_2 * p2_2 + e2_2 * p1_2 )
case "div":
p2_4 = p2_2 * p2_2
result = math.sqrt(e1_2 / p2_2 + e2_2 * p1_2 / p2_4)
case "sqrt_sum" | "sqrt_sub":
sign = 1 if operation == "sqrt_sum" else -1
f2 = p1_2 + sign * p2_2
result = math.sqrt((e1_2 * p1_2 + e2_2 * p2_2) / f2)
case _:
raise Exception(GenerateExceptionMessage(
1,
'error_propagation()',
"Invalid operation: must be 'sum', 'sub', 'mul',"
" 'div', 'sqrt_sum' or 'sqrt_sub'."))
jurenag
approved these changes
Feb 6, 2026
added 14 commits
February 10, 2026 16:27
This file contains hidden or 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
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.
Final NP04 self-trigger analysis + Cross-talk