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

Improved examples #102

Merged
merged 11 commits into from
Jan 9, 2025
Merged

Improved examples #102

merged 11 commits into from
Jan 9, 2025

Conversation

graeme-a-stewart
Copy link
Member

Code for the examples is reorganised - particularly the visualisation examples are moved to their own subdirectory, so that the heavy Makie dependency is removed from the general examples Project.toml.

The instrumented-jetreco.jl example is fixed for:

  • Refactor the code to make clearer the separation between run types (benchmark, allocations, profiling).
  • Fix the benchmarking warm up code to do a real run on the main code path, which avoids divergence in between the warm up and the main loop.
  • Fix issue where not specifying either algorithm or power caused a crash, because the algorithm was queried before it had been set to a default value

Basic test.sh scripts are added to test basic examples so that they can be checked quickly during development. Eventually the suitable tests will be integrated into CO (#72).

Closes #94
Closes #101

Refactor the code to make clearer the separation between run types (benchmark,
allocations, profiling).

Fix the benchmarking warm up code to do a real run on the main code path,
which avoids divergence in between the warm up and the main loop.

Fix issue where not specifying either algorithm or power caused a crash.
Allows for a quick benchmark on three of the most important use cases - should help
to prevent performance regressions.
To avoid the heavy dependencies of Makie, but the visualisation examples
here, instead of in the main examples directory
Fixes visualisation for e+e- reconstruction sequences
Fix paths and dependencies
To be integrated into the CI, eventually.
Note that the current production release of JetReconstruction (v0.4.3) does not
support the constituents examples,
however the next release will
@graeme-a-stewart graeme-a-stewart self-assigned this Jan 9, 2025
Reflect the new layout of the examples files and give a few CLI examples
Copy link

codecov bot commented Jan 9, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 71.52%. Comparing base (eb1e269) to head (783a881).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/ClusterSequence.jl 0.00% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #102   +/-   ##
=======================================
  Coverage   71.52%   71.52%           
=======================================
  Files          17       17           
  Lines        1166     1166           
=======================================
  Hits          834      834           
  Misses        332      332           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@graeme-a-stewart graeme-a-stewart merged commit 7e570cb into main Jan 9, 2025
8 of 9 checks passed
@graeme-a-stewart graeme-a-stewart deleted the improved-examples branch January 9, 2025 20:31
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.

Warm up for instrumented jet reco isn't warm enough... Refactor examples into subdirectories
1 participant