Skip to content

Conversation

@tdixon97
Copy link
Collaborator

@tdixon97 tdixon97 commented Nov 13, 2025

Some steps are needed to have this working

  • implement and test the basic machinery for vector fields (first attempt here)
  • test this object as a "template" in maximum_current
  • possibility to split e-/holes
  • non-variable grids? finer closer to p+ or n+

We should also think about whether we still use the drift time map, whether we interpolate also in phi etc, how to combine with the surface simulation etc.

@codecov
Copy link

codecov bot commented Nov 14, 2025

Codecov Report

❌ Patch coverage is 65.00000% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.48%. Comparing base (96d4c6b) to head (035bbda).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
src/reboost/hpge/psd.py 49.18% 31 Missing ⚠️
src/reboost/hpge/utils.py 89.74% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #134      +/-   ##
==========================================
- Coverage   70.69%   70.48%   -0.21%     
==========================================
  Files          31       31              
  Lines        2416     2494      +78     
==========================================
+ Hits         1708     1758      +50     
- Misses        708      736      +28     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tdixon97 tdixon97 marked this pull request as ready for review December 6, 2025 14:11
@tdixon97
Copy link
Collaborator Author

tdixon97 commented Dec 6, 2025

This is now ready, the missing items are optional

@tdixon97 tdixon97 requested a review from ManuelHu December 6, 2025 14:12
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

committed by mistake?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops sorry yes

r: ArrayLike,
z: ArrayLike,
template: ArrayLike,
pulse_shape_library: tuple[np.array, np.array, np.array],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this annotation correct?

r: ak.Array,
z: ak.Array,
template: np.array,
pulse_shape_library: tuple[np.array, np.array, np.array],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again annotation here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also update docstring

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes its correct, since you cant pass the class to a numba func

start: float,
dt: float,
) -> float:
"""Get the value of the waveform at a certain index.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this docstring is out of date, but maybe it can be made very short since it's not even a public function?

@gipert
Copy link
Member

gipert commented Dec 20, 2025

let's merge this once the final polishing is done?

@tdixon97
Copy link
Collaborator Author

let's merge this once the final polishing is done?

Yes I think it is almost ready, it is also now been tested a bit by @SalehGiovanna

@gipert
Copy link
Member

gipert commented Dec 20, 2025

brava

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.

2 participants