You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using audformat.Column.set() we only check if the provided value(s) match a corresponding scheme if the scheme has labels or a minimum and or maximum.
Let's start with a database containing an integer scheme:
On the other hand catching the error might also hide the underlying problem, e.g. #364 would have been very hard to understand by a user if we would have catched the ValueError and replaced it with a custom message stating that the user cannot provide dates to a column with a date scheme ;)
When using
audformat.Column.set()
we only check if the provided value(s) match a corresponding scheme if the scheme has labels or a minimum and or maximum.Let's start with a database containing an integer scheme:
If we assign a string value it is converted to integer automatically:
But if a user provides a string that cannot be converted to the requested numeric type she will get an error message that might be not that helpful:
There are two possible options to enhance this:
/cc @hesamsagha
The text was updated successfully, but these errors were encountered: