Skip to content

Commit

Permalink
Merge pull request #11 from vanitery/patch-1
Browse files Browse the repository at this point in the history
Update process_file.py to remove numpy type aliases. Bump patch version for release.
  • Loading branch information
FaustinCarter authored Sep 20, 2023
2 parents 954738e + 568935d commit d980092
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scraps/process_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -82,4 +82,4 @@ def process_file(fileName, mask = None, meta_only=False, **loadtxt_kwargs):
return retVal
else:

assert False, "Bad file? " + fileName
assert False, "Bad file? " + fileName

0 comments on commit d980092

Please sign in to comment.