From 86e9e1de01a1baa9e5edc8a274c86df340200166 Mon Sep 17 00:00:00 2001 From: dcdenu4 Date: Mon, 6 Jan 2025 09:33:53 -0500 Subject: [PATCH] skip compiled models, since we're not compiling them --- src/natcap/invest/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/natcap/invest/models.py b/src/natcap/invest/models.py index 7d3fdd4ee0..2db2af77d9 100644 --- a/src/natcap/invest/models.py +++ b/src/natcap/invest/models.py @@ -27,6 +27,9 @@ def is_invest_compliant_model(module): for _, _name, _ispkg in pkgutil.iter_modules(natcap.invest.__path__): if _name in {'__main__', 'cli', 'ui_server'}: continue # avoid a circular import + if _name in {'delineateit', 'ndr', 'scenic_quality', 'sdr', + 'seasonal_water_yield', 'recreation'}: + continue # avoid compiled models _module = importlib.import_module(f'natcap.invest.{_name}') if _ispkg: for _, _sub_name, _ in pkgutil.iter_modules(_module.__path__):