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
_check_X checks whether a data collection is valid, but does not catch datasets which have a different number of channels for each case which is unsupported.
Currently, the function getting the number of chan is get_n_channels which "return the number of timepoints channels in the first element of a collectiom". get_n_channels is used here and here.
Can we transform this function with a parameters like get_n_channels(X, onlyFirst=True) to have the hability to get list of channels ?
_check_X is the function which is supposed to check input, but _get_X_metadata (called by _check_X) is the function calling effectively get_n_channels. Can we raise the exception from here ? (note that it is also used in _convert_X)
I've found multiple reference to aeon.registry.COLLECTIONS_DATA_TYPES in the doc, and replaced them with aeon.utils.registry.COLLECTIONS_DATA_TYPES as that's where I founded them.
We may want to create an issue about this ? Was it a mistake from me ?
PS : when I ask "can we", it is to be understood as : "is it a good idea ?"
I think your merged resolution is fine. We don't support different number of channels, so just raising an error instead of adding a parameter is ok.
It will go through _check_X first, as long as the error is informative so the user knows what the issue is I'm ok with it going wherever, I think that has been achieved.
Thanks for the fixes 🙂. Probably don't need an issue unless you know there are more that still need to be fixed.
Describe the bug
_check_X
checks whether a data collection is valid, but does not catch datasets which have a different number of channels for each case which is unsupported.Steps/Code to reproduce the bug
Expected results
An informative exception is rasied.
Actual results
No exception is raised.
Versions
No response
The text was updated successfully, but these errors were encountered: