-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
[BUG] Example plot_driver_laptimes.py
no longer working with latest Seaborn release
#459
Comments
@Casper-Guo you were the one who added this example and I've actually never worked with Seaborn. Do you have time to take a look at this? It's not too urgent really. Edit: I'll temporarily require seaborn<0.13.0 in requirement-dev.txt so that the CI won't fail. |
Just read Seaborn's release notes and it is not obvious what the breaking change was. I'll look into this over the weekend. |
Some of my own visualization code is also failing on Seaborn 0.13.0. The below code works as is at Seaborn 0.12.2 but fails at 0.13.0. Setting
Full trace:
@pesaventofilippo can you please also check your code base for any failure at 0.13.0? |
@Casper-Guo Sure! I just checked, and I have the same problem as you above. Works fine in 0.12.2, but doesn't with 0.13.0. I don't use Seaborn much, so I'm not very familiar with it unfortunately. My only guess is that both Seaborn and FastF1 change the way matplotlib behaves with timedeltas, so maybe they're interfering with each other? A big feature in seaborn 0.13.0 is datetime support. |
The relevant section of the release notes:
Just based on this text, the change might affect my script but shouldn't affect the example. The trace seems to back this up. This may well be two separate issues but I thought I would raise it to provide some clues. I will try to reduce the example to isolate the error and then maybe open an issue in the Seaborn repo too |
I actually cannot reproduce the reported error currently. I have seaborn 0.13.0 installed in the environment and the script is working as expected. |
I will have a look at this later today as well. Including trying to figure out how Timple patching parts of Matplotlib may interfere here. |
I've isolated both errors. They are unrelated. The error in the The error in the code that you provided, @Casper-Guo is more or less an oversight in Timple. Seaborn unexpectedly passes Pandas objects to a function that Timple is patching. That will probably be an easy fix, though. |
@Casper-Guo the error in your script is fixed with the latest release of timple just now. To fix the error in |
Thank you for doing all the investigation! |
Seaborn v0.13.1 has been released two days ago. That means the second error is fixed as well. I'll require seaborn>0.13.0 for the documentation build from now on. |
Describe the issue:
With the release of seaborn v0.13.0 the
plot_driver_laptimes.py
example has stopped working. Everything works perfectly fine with seaborn v0.12.2 without changing anything else.This problem is somehow related to Seaborn casting the timedelta64 data type internally, and NumPy is unhappy about that.
Reproduce the code example:
Error message:
The text was updated successfully, but these errors were encountered: