Skip to content

Commit

Permalink
add underscore in file name search using resType
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-wagner committed Oct 23, 2024
1 parent ffa81b3 commit b7f23f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avaframe/com1DFA/com1DFA.py
Original file line number Diff line number Diff line change
Expand Up @@ -2395,9 +2395,9 @@ def readFields(inDir, resType, simName="", flagAvaDir=True, comModule="com1DFA",
for r in resType:
# search for all files within directory
if simName:
name = "*" + simName + "*" + r + "*.asc"
name = "*" + simName + "*_" + r + "*.asc"
else:
name = "*" + r + "*.asc"
name = "*_" + r + "*.asc"
FieldsNameList = list(inDir.glob(name))
timeListTemp = [float(element.stem.split("_t")[-1]) for element in FieldsNameList]
FieldsNameList = [x for _, x in sorted(zip(timeListTemp, FieldsNameList))]
Expand Down

0 comments on commit b7f23f3

Please sign in to comment.