Skip to content

Commit 1ccb3b7

Browse files
authored
Update cov.py
1 parent ffe7758 commit 1ccb3b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/Python/mcresplot/cov.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def calc_covar(Q, E, w, Qpara, Qperp):
141141
Q4 = np.insert(Q, 3, E, axis=1)
142142

143143
# calculate the mean Q 4-vector
144-
Qmean = [ np.average(Q4[:,i], weights = w) for i in range(4) ]
144+
Qmean = np.array([ np.average(Q4[:, i], weights = w) for i in range(4) ])
145145
if options["verbose"]:
146146
print("Mean (Q, E) vector in lab system:\n%s\n" % Qmean)
147147

0 commit comments

Comments
 (0)