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

Except TypeError to trigger JSON schema error message #170

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

alexhbnr
Copy link
Collaborator

Using the JSON schema, amdirt enforces reading the columns of the AMDir tables in the expected column types. If the type differs, e.g. instead of integer it is float, an error of the type TypeError is thrown. See issue #121.

This PR adds an exception for a TypeError and therefore triggers the display of the reason for the error.

amdirt_TypeError_example

@alexhbnr alexhbnr requested a review from jfy133 February 10, 2025 16:03
@alexhbnr alexhbnr merged commit 0d3f57b into master Feb 10, 2025
6 checks passed
@alexhbnr alexhbnr deleted the escape_floats_in_int_cols branch February 10, 2025 19:42
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.

2 participants