mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-20 04:04:00 +00:00
fix issue with prohibited facets in 0065c5f, add a test
This commit is contained in:
@@ -262,8 +262,6 @@ class Specification:
|
||||
for facet in self.requirements:
|
||||
result = facet(element)
|
||||
is_pass = bool(result)
|
||||
if facet.cardinality == "prohibited":
|
||||
is_pass = not is_pass
|
||||
if self.maxOccurs != 0: # This is a required or optional specification
|
||||
if not is_pass:
|
||||
self.failed_entities.add(element)
|
||||
|
||||
Reference in New Issue
Block a user