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

feat: add grid conversion option #2894

Merged

Conversation

asalzburger
Copy link
Contributor

@asalzburger asalzburger commented Jan 24, 2024

This PR adds functionality to a grid to ease conversions between grid.
Two methods are added:

  • convertType<NewType> creates a new empty grid with identical axes and new holder type
  • convertGrid<Converter> converts the grid into a new grid and perform conversion of the values

UnitTests are added to check this functionality.

@asalzburger asalzburger added this to the next milestone Jan 24, 2024
@github-actions github-actions bot added the Component - Core Affects the Core module label Jan 24, 2024
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (d095879) 48.90% compared to head (de8caf4) 48.91%.

Files Patch % Lines
Core/include/Acts/Utilities/Grid.hpp 75.00% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2894      +/-   ##
==========================================
+ Coverage   48.90%   48.91%   +0.01%     
==========================================
  Files         494      494              
  Lines       28822    28834      +12     
  Branches    13668    13671       +3     
==========================================
+ Hits        14095    14104       +9     
  Misses       4874     4874              
- Partials     9853     9856       +3     

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

Core/include/Acts/Utilities/Grid.hpp Outdated Show resolved Hide resolved
Tests/UnitTests/Core/Utilities/GridTests.cpp Show resolved Hide resolved
Core/include/Acts/Utilities/Grid.hpp Outdated Show resolved Hide resolved
CarloVarni
CarloVarni previously approved these changes Jan 25, 2024
@asalzburger
Copy link
Contributor Author

Hi @CarloVarni - thanks for the review, I fixed a spelling mistake, so if you could re-approve, would be great, thanks.

@kodiakhq kodiakhq bot merged commit 43f9107 into acts-project:main Jan 25, 2024
52 checks passed
@acts-project-service
Copy link
Collaborator

✅ Athena integration test results [43f9107]

✅ All tests successful

status job report
🟢 run_unit_tests
🟢 run_ci_tests: ../athena/Tracking/Acts/ActsConfig/test/ActsEFTrackFit.sh
🟢 run_ci_tests: ../athena/Tracking/Acts/ActsConfig/test/ActsBenchmarkWithSpot.sh 8 100
🟢 run_ci_tests: ../athena/Tracking/Acts/ActsConfig/test/ActsWorkflow.sh
🟢 run_ci_tests: ../athena/Tracking/Acts/ActsConfig/test/ActsValidateAmbiguityResolution.sh
🟢 run_ci_tests: ../athena/Tracking/Acts/ActsConfig/test/ActsValidateResolvedTracks.sh
🟢 run_ci_tests: ../athena/Tracking/Acts/ActsConfig/test/ActsValidateTracks.sh
🟢 run_ci_tests: ../athena/Tracking/Acts/ActsConfig/test/ActsValidateActsCoreSpacePoints.sh
🟢 run_ci_tests: ../athena/Tracking/Acts/ActsConfig/test/ActsValidateActsSpacePoints.sh
🟢 run_ci_tests: ../athena/Tracking/Acts/ActsConfig/test/ActsValidateSeeds.sh
🟢 run_ci_tests: ../athena/Tracking/Acts/ActsConfig/test/ActsValidateOrthogonalSeeds.sh
🟢 run_ci_tests: ../athena/Tracking/Acts/ActsConfig/test/ActsValidateClusters.sh
🟢 run_ci_tests: ../athena/Tracking/Acts/ActsConfig/test/ActsPersistifyEDM.sh
🟢 run_ci_tests: ../athena/Tracking/Acts/ActsConfig/test/ActsGSFRefitting.sh
🟢 run_ci_tests: ../athena/Tracking/Acts/ActsConfig/test/ActsKfRefitting.sh
🟢 run_ci_tests: python3 ../athena/Tracking/Acts/ActsGeometry/test/ActsExtrapolationAlgTest.py
🟢 run_ci_tests: python3 ../athena/Tracking/Acts/ActsGeometry/test/ActsITkTest.py
🟢 run_workflow_tests_run4_mc
🟢 run_workflow_tests_run2_mc
🟢 run_workflow_tests_run2_data
🟢 run_workflow_tests_run3_mc
🟢 run_workflow_tests_run3_data
🟢 run_art_test: test_data18_13TeV_1000evt
🟢 run_art_test: test_ttbarPU40_reco

@paulgessinger paulgessinger modified the milestones: next, v32.1.0 Feb 2, 2024
LaraCalic pushed a commit to LaraCalic/acts that referenced this pull request Feb 10, 2024
This PR adds functionality to a grid to ease conversions between grid.
Two methods are added:
 - `convertType<NewType>` creates a new empty grid with identical axes and new holder type
 - `convertGrid<Converter>` converts the grid into a new grid and perform conversion of the values
 
UnitTests are added to check this functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Core Affects the Core module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants