Skip to content

Commit

Permalink
fix variable check bug
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjwilson committed Oct 25, 2024
1 parent 98ad62c commit 88d8e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecoval/matchall.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ def matchup(
benthic_req = copy.deepcopy(benthic)

# throw an error if all of these are empty
if len(surface) == 0 and len(bottom) == 0 and len(benthic) == 0:
if len(surface_req) == 0 and len(bottom_req) == 0 and len(point_surface_req) == 0 and len(benthic_req) == 0:
raise ValueError("Please provide at least one variable to matchup")

if isinstance(exclude, str):
Expand Down

0 comments on commit 88d8e2a

Please sign in to comment.