Skip to content

Commit

Permalink
Solve erroneous warning from summaryplot
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Jun 16, 2020
1 parent 9f857fc commit 56a98bb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/subscript/summaryplot/summaryplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,12 @@ def summaryplotter(
# line
matchedsummaryvectors = []
restartvectors = []
wildcard_in_use = False
for vector in vectors:
if vector not in summaryfiles[0].keys():
matchingvectors = summaryfiles[0].keys(vector)
if len(matchingvectors) > 1:
wildcard_in_use = True
if not matchingvectors:
# Check if it is a restart vector with syntax
# <vector>:<i>,<j>,<k> aka SOIL:40,31,33
if re.match(r"^[A-Z]+:[0-9]+,[0-9]+,[0-9]+$", vector):
Expand All @@ -275,6 +279,10 @@ def summaryplotter(
else:
logging.warning("No summary or restart vectors matched %s", vector)
matchedsummaryvectors.extend(summaryfiles[0].keys(vector))
if wildcard_in_use:
logging.info(
"Summary vectors after wildcard expansion: %s", str(matchedsummaryvectors)
)

# If we have any restart vectors defined, we must also load the restart files
if restartvectors:
Expand Down

0 comments on commit 56a98bb

Please sign in to comment.