Skip to content
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

prim: Replace deprecated Altair function #270

Merged
merged 3 commits into from
May 18, 2023
Merged

prim: Replace deprecated Altair function #270

merged 3 commits into from
May 18, 2023

Conversation

EwoutH
Copy link
Collaborator

@EwoutH EwoutH commented May 15, 2023

Replace altair.selection_single() with altair.selection_point(), since the former is deprecated in Altair 5.0.0.

Do not merge yet, still running some tests.

Also note that Altair is not covered currently in our CI.

Replace altair.selection_single() with altair.selection_point(), since the former is deprecated in Altair 5.0.0.
@quaquel
Copy link
Owner

quaquel commented May 15, 2023

The reason that its not covered by the CI is that, if I recall correctly, there were a few remaining things in the code I wanted to polish. But then covid came. This is also why I haven't documented it in much detail.

@coveralls
Copy link

coveralls commented May 15, 2023

Coverage Status

Coverage: 81.097%. Remained the same when pulling 6b95801 on altair-v5-fix into f7fe968 on master.

EwoutH added 2 commits May 15, 2023 20:26
Fix the Altair Chart used in inspect_tradeoff(), by using Chart().add_selection() instead of the removed Chart().properties(selector=). This fixed the inspect_tradeoff() when using Altair 5.0.0.
@EwoutH
Copy link
Collaborator Author

EwoutH commented May 15, 2023

With 5405cf7 the error got resolved, but apparently that was already outdated (Altair must have a very stable API) so I replaced it in 6b95801 to also remove the new deprecation error. With this PR, it's now error and warning free and it looks likes it behaves like expected.

@EwoutH EwoutH marked this pull request as ready for review May 15, 2023 18:39
@quaquel
Copy link
Owner

quaquel commented May 17, 2023

Go ahead and merge this if it now is ready to be merged.

@EwoutH EwoutH merged commit b8748d9 into master May 18, 2023
@EwoutH
Copy link
Collaborator Author

EwoutH commented May 18, 2023

Done!

We might want to cherry pick this into a 2.5.1 release, I can do that Monday if you agree.

@quaquel
Copy link
Owner

quaquel commented May 19, 2023

There is another weird thing in the pca preprocessing that ideally I'll investigate and fix as part of that as well

EwoutH added a commit that referenced this pull request Jun 18, 2023
* prim: Replace deprecated Altair function

Replace altair.selection_single() with altair.selection_point(), since the former is deprecated in Altair 5.0.0.

* prim: Fix Altair chart by using Chart().add_selection()

Fix the Altair Chart used in inspect_tradeoff(), by using Chart().add_selection() instead of the removed Chart().properties(selector=). This fixed the inspect_tradeoff() when using Altair 5.0.0.

* prim: Update deprecated Chart.add_selection() to .add_params()

See https://altair-viz.github.io/releases/changes.html#grammar-changes
@quaquel quaquel deleted the altair-v5-fix branch November 18, 2023 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants