-
Notifications
You must be signed in to change notification settings - Fork 54
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
BoundsError on last(::MatrixTable)
#261
Comments
The problem is that:
which is inconsistent with the general API for |
Not really; the API for The problem here is that |
That sounds to me like a bug by itself. |
@quinnj - I find it inconsistent as we have:
which is a part of public API for and |
It sounds like others are bringing up the fact that @bkamins, yes, as I was reviewing, I thought maybe the iterator/indexable split was ok, but that is a case of inconsistency. It seems we need to return a separate iterator object from |
I think we should stick to a rule that if a subtype adds a method that supertype supports this method should do the same thing conceptually (of course it can have a different implementation for performance reasons, but should not change how things works). Reason - assume someone writes a generic code using Tables.jl and relying on how |
Fixes #261. Because `MatrixTable` subtypes `AbstractColumns`, it inherits certain behavior like `length`; but when it needs to fulfill the "rows" interface, it needs `length` to be defined in terms of the # of rows instead of the # of columns. We fix this inconsistency here by defining another type that mirrors `MatrixTable` but is used in the rows case.
Ok, fix is up: #262 |
Fixes #261. Because `MatrixTable` subtypes `AbstractColumns`, it inherits certain behavior like `length`; but when it needs to fulfill the "rows" interface, it needs `length` to be defined in terms of the # of rows instead of the # of columns. We fix this inconsistency here by defining another type that mirrors `MatrixTable` but is used in the rows case.
This breaks display of
MatrixTable
in Pluto.The text was updated successfully, but these errors were encountered: