From f0ca778eb6b95ffde68b1b3ef1b98a116e8b12b7 Mon Sep 17 00:00:00 2001 From: Grzegorz Kowal Date: Mon, 11 Mar 2019 11:53:06 -0300 Subject: [PATCH] PYTHON: Fix subroutines to read integrals. Signed-off-by: Grzegorz Kowal --- python/amun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/amun.py b/python/amun.py index b3bc65d..f3591f1 100644 --- a/python/amun.py +++ b/python/amun.py @@ -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):