Skip to content

feat: log error with algorithm exception before throwing to JANA #1790

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wdconinc
Copy link
Contributor

@wdconinc wdconinc commented Apr 12, 2025

Briefly, what does this PR introduce?

This PR adds printing of exceptions from algorithms to the log stream as errors. Likely to be useful with #1789 since it would otherwise be overwhelming. This will help avoid issues like #1762 (comment), #1788, and #1795.

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue: exceptions are silently ignored)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No.

Does this PR change default behavior?

Yes, prints exceptions. Likely a lot for simulation input that does not contain default collections.

@wdconinc
Copy link
Contributor Author

Without log duplicate filter:
image

Copy link
Contributor

github-actions bot commented Apr 12, 2025

@wdconinc wdconinc force-pushed the log-error-on-algorithm-exception branch from 968eef2 to 32552fb Compare April 12, 2025 23:27
@wdconinc wdconinc requested a review from veprbl April 13, 2025 15:42
@wdconinc wdconinc force-pushed the log-error-on-algorithm-exception branch from 32552fb to 2edd225 Compare April 14, 2025 18:01
@wdconinc wdconinc force-pushed the log-error-on-algorithm-exception branch from 2edd225 to 63eba8f Compare April 24, 2025 21:02
@wdconinc
Copy link
Contributor Author

This should now already produce a lot fewer false positives. At least for DIS. There's still the OMD which is only defined properly for 130 GeV protons, which we never simulate...

@wdconinc wdconinc force-pushed the log-error-on-algorithm-exception branch from 63eba8f to 58f5e0d Compare April 30, 2025 20:21
@wdconinc wdconinc force-pushed the log-error-on-algorithm-exception branch from 58f5e0d to 68e717d Compare May 6, 2025 02:38
@wdconinc wdconinc force-pushed the log-error-on-algorithm-exception branch from 68e717d to 72022b7 Compare May 9, 2025 03:17
@wdconinc wdconinc force-pushed the log-error-on-algorithm-exception branch from 72022b7 to e9d5073 Compare May 23, 2025 00:38
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