Adds Altair plot component and some other fixes#2644
Adds Altair plot component and some other fixes#2644
Conversation
|
Performance benchmarks:
|
|
Thanks for the PR! A few of the automated checks broke, could you look into what caused that? I will leave the review to others. |
|
@nissu99 also please look at #2643 and #2641 As you are @sanika-n are working in the same space As it looks like you two are looking over the entire altair implementation I would also recommend looking at #2642 discussion It is always good to collaborate and think together you may address some larger visualization challenges. |
"alt defined"
for more information, see https://pre-commit.ci
|
@tpike3 When I run the tests locally, they don't fail, but they are failing here. |
I am not sure why your tests are passing locally, however for tests to pass they need to updated. It is expecting |
"removed a line"
"updated toml"
"removed suppress"
for more information, see https://pre-commit.ci
"doc string "
for more information, see https://pre-commit.ci
"operator bug"
Thank You, the issue got resolved by adding altair to the toml file. |
|
Removing stuff that has become redundant is fine. |
|
@quaquel i have added all the stuff,can you review it? |
|
I'll try to review it over the weekend, but I am rather bussy at the moment. This is a part of the code base I am not intimately familiar with and his been a while since I used Altair, so reviewing will take more time than parts of the code base I know inside out. |
stuff like vernoi grid has not been added ,will have to look into it to properly add it. |
|
@nissu99 I can see why you got confused, I think he meant the generic function should be called in the respective draw functions and hence |
I thought ,later he wants to make some universal function which can be reused. |
|
You don't have to worry about the new API, its still in discussion. |
i tried using the collect_agent_data function it does not give the desired results. |
|
How did you test it, can you please elaborate how is it not working? |
|
will ha
i used the internal examples ,somehow it shows no agent showing ,it is not able to extract the data ,will have to properly look into it to understand the issue well. |
|
That's because you are just getting the agent data, no plotting them on the grid. Maybe check if the data extraction is working or not don't not rely on this visualization. |
|
@Sahil-Chhoker sorry for not getting back ,just got my college holidays started , i think the extraction is the fault here |
|
Its working fine for me, can you test again. I don't think its a difficult task, you just replace the agent data collection logic with the |
i get that , it is not working for OrthogonalMooreGrid somehow,for others it works fine. |
|
It's working for |
|
It worked ,i made a dumb mistake ,should i make a commit for changing the extraction logic? |
|
Yeah, refactor the agent placement logic inline with the extraction logic. |
|
I encountered several issues while reviewing this PR. First, the previous review comments have not been addressed. Additionally, you're not using the new grids in Due to the excessive length of this PR, it's difficult for me to review it entirely. I strongly recommend breaking it down into smaller, atomic PRs that address specific issues. A better approach could be:
This will make the review process smoother and ensure that changes are properly implemented step by step. |
|
I will change all the experimental to discrete_space ,I agree the changes have increased and i understand it is becoming very hard to review , is the extraction logic fine ? |
|
I have only tested it once, so it may be a good starting point. And again I strongly recommend you to break this PR into smaller once. |
Maybe to clarify what this means: Just open a series of new PRs, one after another. So start with some minimal changes as a single PR, which includes the groundwork for the rest. Once this PR is merged, open the next PR with changes to some other function/grid/whatever. And so on. Its more tedious this way, but overall it will speed things up. Right now the PR is too big to properly review, because it requires code review, which is already almost too much, but also manually testing everything. You can also just leave this PR open for now as a reference. |
|
Thanks for the clarification @Corvince! |
Thank You for clarity ,will be making individual PR's . |
|
closing as stale |



#2435
@quaquel @EwoutH I’ve added a new component, make_altair_plot_component. Could you kindly check if it aligns well with the project?
P.S working on space support.