Fix some bugs in conformance checker

This commit is contained in:
Joeri Exelmans 2024-10-04 10:50:29 +02:00
parent 03cc568516
commit 0785b9218e
2 changed files with 70 additions and 63 deletions

View file

@ -75,7 +75,7 @@ def ramify(state: State, model: UUID, prefix = "RAM_") -> UUID:
# Double-check: The RAMified meta-model should also conform to 'SCD':
conf = Conformance(state, ramified, scd_metamodel)
if not conf.check_nominal(log=True):
if len(conf.check_nominal(log=True)) > 0:
raise Exception("Unexpected error: RAMified MM does not conform to SCD MM")
return ramified