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

ENH: Improve pre-processing error handling for UI user friendliness #153

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

sbelsk
Copy link
Contributor

@sbelsk sbelsk commented Dec 19, 2024

As a follow up to #141, this PR improves the error reporting of the pre-processing module for better user friendliness. Namely, the error handling code was refactored to better report a meaningful error message to the UI user when an exception is raised (like what specific field(s) has the invalid value). The error is still reported to the error log for CLI users.

Example Error Before Example Error After
Screenshot 2024-12-19 115034 Screenshot 2024-12-19 120300
Screenshot 2024-12-19 115050 Screenshot 2024-12-19 120331

@sbelsk sbelsk requested review from jcfr and amymmorton January 8, 2025 16:03
Copy link
Contributor

@amymmorton amymmorton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm
nice upgrade, @sbelsk

AutoscoperM/AutoscoperMLib/ErrorUtils.py Outdated Show resolved Hide resolved
AutoscoperM/AutoscoperMLib/ErrorUtils.py Outdated Show resolved Hide resolved
AutoscoperM/AutoscoperMLib/ErrorUtils.py Outdated Show resolved Hide resolved
AutoscoperM/AutoscoperMLib/ErrorUtils.py Outdated Show resolved Hide resolved
AutoscoperM/AutoscoperM.py Outdated Show resolved Hide resolved
AutoscoperM/AutoscoperMLib/ErrorUtils.py Outdated Show resolved Hide resolved
AutoscoperM/AutoscoperMLib/ErrorUtils.py Outdated Show resolved Hide resolved
AutoscoperM/CMakeLists.txt Outdated Show resolved Hide resolved
AutoscoperM/AutoscoperMLib/ErrorUtils.py Outdated Show resolved Hide resolved
AutoscoperM/AutoscoperMLib/ErrorUtils.py Outdated Show resolved Hide resolved
@jcfr
Copy link
Contributor

jcfr commented Jan 13, 2025

Thanks for addressing this 🙏

After addressing few nitpicks and renaming ErrorUtils to Validation, it will be good for integration 🚀

@sbelsk sbelsk force-pushed the improve-pre-processing-errors branch from 38ef7aa to eb36015 Compare January 13, 2025 16:51
@sbelsk sbelsk merged commit d816904 into BrownBiomechanics:main Jan 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants