From e842748676a94f181d8281c4e281d497aa3c43d0 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Thu, 24 Oct 2024 16:28:28 -0400 Subject: [PATCH] Fix bug with surfaces and external atlases (#1304) --- xcp_d/utils/atlas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xcp_d/utils/atlas.py b/xcp_d/utils/atlas.py index 594f5473b..6eca875dd 100644 --- a/xcp_d/utils/atlas.py +++ b/xcp_d/utils/atlas.py @@ -50,8 +50,9 @@ def select_atlases(atlases, subset): ) subset_atlases = BUILTIN_ATLASES[subset] if atlases: - assert all([atlas in BUILTIN_ATLASES["all"] for atlas in atlases]) + external_atlases = [atlas for atlas in atlases if atlas not in BUILTIN_ATLASES["all"]] selected_atlases = [atlas for atlas in atlases if atlas in subset_atlases] + selected_atlases += external_atlases else: selected_atlases = subset_atlases