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: Introduce scope failure threshold helper #3290

Merged
merged 3 commits into from
Jun 13, 2024

Conversation

paulgessinger
Copy link
Member

This PR adds a RAII helper that sets a specific log threshold scope until it is destroyed. This is helpful mostly for unit tests where we need to suppress failure due to (expected) error messages.

@github-actions github-actions bot added the Component - Core Affects the Core module label Jun 13, 2024
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.36%. Comparing base (c57e13a) to head (0d4b365).
Report is 272 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3290   +/-   ##
=======================================
  Coverage   47.36%   47.36%           
=======================================
  Files         511      511           
  Lines       30260    30260           
  Branches    14680    14680           
=======================================
  Hits        14333    14333           
  Misses       5389     5389           
  Partials    10538    10538           

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

@kodiakhq kodiakhq bot merged commit 30c3227 into acts-project:main Jun 13, 2024
51 checks passed
kodiakhq bot pushed a commit that referenced this pull request Jun 14, 2024
This PR allows merging of two cylinder and disc surfaces. Merging is allowed in the $z$ and $r\times\phi$ direction for cylinders, and in the $r$ and $\phi$ direction for discs. The surfaces need to be consistent, i.e. their bounds dimensions and transforms need to line up.

- For **cylinders**:
  - $z$ merging: $z$ edges must be aligned, no relative $xy$ shift or any rotation is allowed.
  - $r\times\phi$ merging: $r\times\phi$ edges must be aligned, no $xyz$ shift or any rotation is allowed
- For **discs**:
  - $r$ merging: $r$ edges must be aligned, no $xyz$ shift or rotation is allowed
  - $\phi$ merging: $\phi$ edges must be aligned, no $xyz$ shift or rotation is allowed.

![Cylinder_Merging](https://github.com/acts-project/acts/assets/1058585/ed7b2a9d-764b-473a-9c5a-675651232786)
![Disc_Merging](https://github.com/acts-project/acts/assets/1058585/3fe97e7e-94ee-4d1a-8277-8cd01104b06a)

Blocked by:
- #3290
@andiwand andiwand modified the milestones: next, v35.2.0 Jun 16, 2024
Matthewharri pushed a commit to Matthewharri/acts that referenced this pull request Jun 18, 2024
This PR adds a RAII helper that sets a specific log threshold scope until it is destroyed. This is helpful mostly for unit tests where we need to suppress failure due to (expected) error messages.
Matthewharri pushed a commit to Matthewharri/acts that referenced this pull request Jun 18, 2024
This PR allows merging of two cylinder and disc surfaces. Merging is allowed in the $z$ and $r\times\phi$ direction for cylinders, and in the $r$ and $\phi$ direction for discs. The surfaces need to be consistent, i.e. their bounds dimensions and transforms need to line up.

- For **cylinders**:
  - $z$ merging: $z$ edges must be aligned, no relative $xy$ shift or any rotation is allowed.
  - $r\times\phi$ merging: $r\times\phi$ edges must be aligned, no $xyz$ shift or any rotation is allowed
- For **discs**:
  - $r$ merging: $r$ edges must be aligned, no $xyz$ shift or rotation is allowed
  - $\phi$ merging: $\phi$ edges must be aligned, no $xyz$ shift or rotation is allowed.

![Cylinder_Merging](https://github.com/acts-project/acts/assets/1058585/ed7b2a9d-764b-473a-9c5a-675651232786)
![Disc_Merging](https://github.com/acts-project/acts/assets/1058585/3fe97e7e-94ee-4d1a-8277-8cd01104b06a)

Blocked by:
- acts-project#3290
timadye pushed a commit to andiwand/acts that referenced this pull request Jun 27, 2024
This PR adds a RAII helper that sets a specific log threshold scope until it is destroyed. This is helpful mostly for unit tests where we need to suppress failure due to (expected) error messages.
timadye pushed a commit to andiwand/acts that referenced this pull request Jun 27, 2024
This PR allows merging of two cylinder and disc surfaces. Merging is allowed in the $z$ and $r\times\phi$ direction for cylinders, and in the $r$ and $\phi$ direction for discs. The surfaces need to be consistent, i.e. their bounds dimensions and transforms need to line up.

- For **cylinders**:
  - $z$ merging: $z$ edges must be aligned, no relative $xy$ shift or any rotation is allowed.
  - $r\times\phi$ merging: $r\times\phi$ edges must be aligned, no $xyz$ shift or any rotation is allowed
- For **discs**:
  - $r$ merging: $r$ edges must be aligned, no $xyz$ shift or rotation is allowed
  - $\phi$ merging: $\phi$ edges must be aligned, no $xyz$ shift or rotation is allowed.

![Cylinder_Merging](https://github.com/acts-project/acts/assets/1058585/ed7b2a9d-764b-473a-9c5a-675651232786)
![Disc_Merging](https://github.com/acts-project/acts/assets/1058585/3fe97e7e-94ee-4d1a-8277-8cd01104b06a)

Blocked by:
- acts-project#3290
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