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

Fix a "NumbaPendingDeprecationWarning: type 'reflected list' found for argument 'photons' of function 'build_waveform'." #109

Closed
dachengx opened this issue Jan 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@dachengx
Copy link
Contributor

When running pytest -vx ./tests -k TestDeterministicSeed with 0d3fb95, I got a warning like:

/opt/XENONnT/anaconda/envs/XENONnT_2024.01.1/lib/python3.9/site-packages/numba/core/ir_utils.py:2172: NumbaPendingDeprecationWarning: 
Encountered the use of a type that is scheduled for deprecation: type 'reflected list' found for argument 'photons' of function 'build_waveform'.

For more information visit https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-reflection-for-list-and-set-types

File "../../../../home/xudc/fuse/fuse/plugins/pmt_and_daq/pmt_response_and_daq.py", line 388:
@njit(cache=True)
def build_waveform(
^

  warnings.warn(NumbaPendingDeprecationWarning(msg, loc=loc))
@dachengx dachengx added the enhancement New feature or request label Jan 23, 2024
@ramirezdiego
Copy link
Collaborator

Resolved by @dachengx in #116.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants