Skip to content

Commit

Permalink
Find datafiles with valid filetype
Browse files Browse the repository at this point in the history
  • Loading branch information
kjetilbjorke committed Oct 17, 2024
1 parent 4132fcf commit 57de70b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fmu/sumo/sim2sumo/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ def find_datafiles(seedpoint=None):
# Add the file if it has a valid filetype
datafiles.append(full_path)
else:
for filetype in valid_filetypes:
datafiles.extend([f for f in full_path.parent.rglob(f"{full_path.name}*{filetype}")])
datafiles.extend([f for f in full_path.parent.rglob(f"{full_path.name}")])
else:
for filetype in valid_filetypes:
if not full_path.is_dir():
Expand Down

0 comments on commit 57de70b

Please sign in to comment.