Skip to content

Commit 8a523c2

Browse files
committed
np.prod
1 parent 1634606 commit 8a523c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

chxtools/attfuncs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def calc_T(T, E="auto", foil_mode="Si"):
118118
a[h] = int(k[h])
119119
x = sT * a
120120
x[x == 0] = 1
121-
T_tot[num] = np.product(x)
121+
T_tot[num] = np.prod(x)
122122

123123
# determine best attenuator configuration
124124
diff = np.abs(T_tot - T)
@@ -241,7 +241,7 @@ def get_T(E="auto"):
241241
sT[m] = xf.get_T(abs_mat[m], E / 1000.0, abs_th[m])
242242
x = sT * read_conf
243243
x[x == 0] = 1
244-
T_tot = np.product(x)
244+
T_tot = np.prod(x)
245245
Si_ind = read_conf[len(Cu_th) : len(read_conf)]
246246
Cu_ind = read_conf[0 : len(Cu_th)]
247247
print("Found:")

0 commit comments

Comments
 (0)