Skip to content

Commit

Permalink
skip compiled models, since we're not compiling them
Browse files Browse the repository at this point in the history
  • Loading branch information
dcdenu4 committed Jan 6, 2025
1 parent bc43bc1 commit 86e9e1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/natcap/invest/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__):
Expand Down

0 comments on commit 86e9e1d

Please sign in to comment.