Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(validation): Tweak ValidationError to work for multiple objects #375

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

chriswmackey
Copy link
Member

@chriswmackey chriswmackey added the enhancement New feature or request label Jul 25, 2023
@chriswmackey chriswmackey self-assigned this Jul 25, 2023
chriswmackey added a commit to chriswmackey/honeybee-core that referenced this pull request Jul 25, 2023
This change is meant to align with this PR here:

ladybug-tools/honeybee-schema#375

The new capability of reporting multiple invalid objects in a single error is being used in two places:

- In a new and improved check for overlapping sub-faces, where all of the overlapping sub-faces are reported
- In the check for adjacent objects with mis-matched areas. In this case, both of the adjacent objects are reported so that the msi-match is clear to see.

This commit it also removing all of the check_non_zero methods, which have never been used in validation and, for the places where this type of check matters, there are much better versions of this check.
@chriswmackey chriswmackey merged commit 8543e06 into ladybug-tools:master Jul 27, 2023
5 checks passed
@github-actions
Copy link

🎉 This PR is included in version 1.53.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant