direct initialization (float64 is anyway standard)
This commit is contained in:
parent
03a3edc128
commit
76236a4a0c
|
@ -80,7 +80,7 @@ for name in filenames:
|
||||||
# ------------------------------------------ process data ------------------------------------------
|
# ------------------------------------------ process data ------------------------------------------
|
||||||
mask = []
|
mask = []
|
||||||
for col,dim in zip(columns,dims): mask += range(col,col+dim) # isolate data columns to cumulate
|
for col,dim in zip(columns,dims): mask += range(col,col+dim) # isolate data columns to cumulate
|
||||||
cumulated = np.ones(len(mask),dtype=float) * (1 if options.product else 0) # prepare output field
|
cumulated = np.ones(len(mask)) if options.product else np.zeros(len(mask)) # prepare output field
|
||||||
|
|
||||||
outputAlive = True
|
outputAlive = True
|
||||||
while outputAlive and table.data_read(): # read next data line of ASCII table
|
while outputAlive and table.data_read(): # read next data line of ASCII table
|
||||||
|
|
Loading…
Reference in New Issue