-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Table add_highlighted_cell fails if one cell is empty #3396
Comments
Interesting, especially since the function class TableExamples(Scene):
def construct(self):
t0 = Table(
[["", "is a"],
["simple", "Table in \n Manim."]]
)
a = t0.get_highlighted_cell((2,2), color=YELLOW)
self.add(t0, a) |
The problem lies in the method |
I'm happy to help with this! Could I please be assigned to work on this issue? |
Hi, I'm interested in this issue. My thought is an edge case should be implemented on .get_entries() so when .get_highlighted_cell calls this method there won't be error. Can I be assigned to this issue? thanks! |
If you input |
I'd argue that's unintuitive and shouldn't be considered a feature, but good point. |
I believe I've found the root cause of the issue and the solution. I'm currently creating robust test cases for Briefly speaking, I think the issue is caused by trying to handle the case when the program assumes row/column labels are added and the top left cell ( |
This works (from the documentation):
But this doesn't
It raises the error:
IndexError: list index out of range
Python 3.11.1
.manim 0.17.3
.The text was updated successfully, but these errors were encountered: