diff --git a/scraps/process_file.py b/scraps/process_file.py index 109861b..4e47098 100644 --- a/scraps/process_file.py +++ b/scraps/process_file.py @@ -53,12 +53,12 @@ def process_file(fileName, mask = None, meta_only=False, **loadtxt_kwargs): #Read the temp, pwr, and resName from the filename if(fileName[tempLoc + 1] == '.'): - temp = np.float(fileName[tempLoc:tempLoc+5]) + temp = float(fileName[tempLoc:tempLoc+5]) if fileName[pwrLoc] == '_': - pwr = np.float(fileName[pwrLoc+1:pwrLoc+3]) + pwr = float(fileName[pwrLoc+1:pwrLoc+3]) else: - pwr = np.float(fileName[pwrLoc:pwrLoc+3]) + pwr = float(fileName[pwrLoc:pwrLoc+3]) resName = fileName[resNameLoc:resNameLoc+5] @@ -82,4 +82,4 @@ def process_file(fileName, mask = None, meta_only=False, **loadtxt_kwargs): return retVal else: - assert False, "Bad file? " + fileName \ No newline at end of file + assert False, "Bad file? " + fileName