mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
ifcopenshell.validate - fix mixed up rule names (IfcApplication.UR)
This commit is contained in:
@@ -691,7 +691,7 @@ def validate_ifc_applications(f: ifcopenshell.file, logger: Logger) -> None:
|
|||||||
else:
|
else:
|
||||||
if hasattr(logger, "set_state"):
|
if hasattr(logger, "set_state"):
|
||||||
logger.set_state("instance", inst)
|
logger.set_state("instance", inst)
|
||||||
rule = "Rule IfcApplication.UR1:\n The attribute ApplicationFullName should be unique"
|
rule = "Rule IfcApplication.UR2:\n The attribute ApplicationFullName should be unique"
|
||||||
previous_element = used_names[app_name]
|
previous_element = used_names[app_name]
|
||||||
logger.error(
|
logger.error(
|
||||||
"On instance:\n %s\n %s\n%s\nViolated by:\n %s\n %s",
|
"On instance:\n %s\n %s\n%s\nViolated by:\n %s\n %s",
|
||||||
@@ -708,7 +708,7 @@ def validate_ifc_applications(f: ifcopenshell.file, logger: Logger) -> None:
|
|||||||
else:
|
else:
|
||||||
if hasattr(logger, "set_state"):
|
if hasattr(logger, "set_state"):
|
||||||
logger.set_state("instance", inst)
|
logger.set_state("instance", inst)
|
||||||
rule = "Rule IfcApplication.UR2:\n The attribute ApplicationIdentifier should be unique"
|
rule = "Rule IfcApplication.UR1:\n The attribute ApplicationIdentifier should be unique"
|
||||||
previous_element = used_ids[app_id]
|
previous_element = used_ids[app_id]
|
||||||
logger.error(
|
logger.error(
|
||||||
"On instance:\n %s\n %s\n%s\nViolated by:\n %s\n %s",
|
"On instance:\n %s\n %s\n%s\nViolated by:\n %s\n %s",
|
||||||
|
|||||||
Reference in New Issue
Block a user