Skip to content

Commit

Permalink
add orshape diff to report
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed May 30, 2024
1 parent 5d2a808 commit 667f379
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion buildingmotif/dataclasses/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,10 +681,13 @@ def _report_to_diffset(self) -> Dict[Optional[URIRef], Set[GraphDiff]]:
int(max_count) if max_count else None,
)
)
print("LOOKING FOR OR SHAPES")

# TODO: this is still kind of broken...ideally we would actually interpret the shapes
# inside the or clause
candidates = OrShape.from_validation_report(g)
for c in candidates:
print(c)
diffs[c.focus].add(c)
return diffs


Expand Down

0 comments on commit 667f379

Please sign in to comment.