Skip to content

Commit

Permalink
Moving import inside function
Browse files Browse the repository at this point in the history
This is to have working GitHub actions
  • Loading branch information
soleti authored Mar 4, 2021
1 parent 05be19c commit 608c567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion larndsim/fee.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""

import numpy as np
import cupy as cp
import h5py

from numba import cuda
Expand Down Expand Up @@ -146,6 +145,7 @@ def digitize(integral_list):
Returns:
numpy.ndarray: list of ADC values for each pixel
"""
import cupy as cp
xp = cp.get_array_module(integral_list)
adcs = xp.minimum(xp.floor(xp.maximum((integral_list*GAIN/consts.e_charge+V_PEDESTAL - V_CM), 0) \
* ADC_COUNTS/(V_REF-V_CM)), ADC_COUNTS)
Expand Down

0 comments on commit 608c567

Please sign in to comment.