From 88d8e2a464d0e148cb111491c685c64d705db772 Mon Sep 17 00:00:00 2001 From: Robert Wilson Date: Fri, 25 Oct 2024 14:19:08 +0100 Subject: [PATCH] fix variable check bug --- ecoval/matchall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecoval/matchall.py b/ecoval/matchall.py index 9c57ea4..048c9df 100644 --- a/ecoval/matchall.py +++ b/ecoval/matchall.py @@ -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):