Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Feb 16, 2024
1 parent e2f11a7 commit 987ad8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions seal5/transform/process_settings/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from m2isar.metamodel import arch, patch_model

Check failure on line 17 in seal5/transform/process_settings/transform.py

View workflow job for this annotation

GitHub Actions / Flake8

seal5/transform/process_settings/transform.py#L17

'm2isar.metamodel.patch_model' imported but unused (F401)

from seal5.settings import Seal5Settings
from seal5.settings import Seal5Settings, ExtensionsSettings

logger = logging.getLogger("process_settings")

Expand Down Expand Up @@ -76,8 +76,9 @@ def main():
for set_name, set_def in model["sets"].items():
ext_settings = settings.extensions.get(set_name, None)
if ext_settings is None:
# TODO: warn?
continue
# Fallback!
ext_settings = ExtensionsSettings(feature=set_name.replace("_", ""))
# TODOL extract other details from attributes
assert set_def.settings is None
set_def.settings = ext_settings # TODO: decide how to do this properly

Expand Down

0 comments on commit 987ad8b

Please sign in to comment.