PYTHON: Fix subroutines to read integrals.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
parent
4b7615e72f
commit
f0ca778eb6
@ -496,7 +496,7 @@ def amun_integrals(field, filename, pathlist):
|
||||
'''
|
||||
# Initiate the return values with empty array and file number.
|
||||
#
|
||||
vals = array([])
|
||||
vals = np.array([])
|
||||
num = 1
|
||||
|
||||
# Iterate over all paths provided in the list 'pathlist'.
|
||||
@ -513,7 +513,7 @@ def amun_integrals(field, filename, pathlist):
|
||||
|
||||
# Check if the file exists.
|
||||
#
|
||||
if isfile(dfile):
|
||||
if op.isfile(dfile):
|
||||
|
||||
# Read values from the current integrals file.
|
||||
#
|
||||
@ -521,7 +521,7 @@ def amun_integrals(field, filename, pathlist):
|
||||
|
||||
# Append to the return array.
|
||||
#
|
||||
vals = append(vals, lvals)
|
||||
vals = np.append(vals, lvals)
|
||||
|
||||
# Increase the number file.
|
||||
#
|
||||
@ -585,7 +585,7 @@ def read_integrals(filename, column):
|
||||
|
||||
# Return values.
|
||||
#
|
||||
return(array(lc))
|
||||
return(np.array(lc))
|
||||
|
||||
|
||||
def rebin(a, newshape):
|
||||
|
Loading…
x
Reference in New Issue
Block a user