mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
Fix #4526. Bug when exporting IfcTester results to BCF due to new "failures" attribute.
This commit is contained in:
@@ -424,9 +424,7 @@ class Ods(Json):
|
|||||||
|
|
||||||
class Bcf(Json):
|
class Bcf(Json):
|
||||||
def report_failed_entities(self, requirement):
|
def report_failed_entities(self, requirement):
|
||||||
return [
|
return [{"reason": f["reason"], "element": f["element"]} for f in requirement.failures]
|
||||||
{"reason": requirement.failed_reasons[i], "element": e} for i, e in enumerate(requirement.failed_entities)
|
|
||||||
]
|
|
||||||
|
|
||||||
def to_file(self, filepath: str) -> None:
|
def to_file(self, filepath: str) -> None:
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|||||||
Reference in New Issue
Block a user