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

changed "ci" keyword to "estimator" in sns.lineplot calls in view_timelines.py #524

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

Magnus167
Copy link
Member

@Magnus167 Magnus167 commented Sep 28, 2022

The "ci" (confidence interval) argument/keyword specifies a method for creating error-bars in lineplots seaborn (up to and incl. version 11.2).
In seaborn version 12 onwards, this has been deprecated, and replaced by the estimator keyword, which allows the user to specify which estimator to use.
The implication is that seaborn ignores the argument, and goes on to run error-bar estimation calculations on the data.
It is does not cause a single lineplot to be significantly slower, however when using a panel with multiple lineplots (seaborn.FacetGrid), the output takes much longer.

The issue is documented on the seaborn repository issues here : mwaskom/seaborn#3006
To which the solution (implemented in this commit) is also provided by repo. owner : mwaskom/seaborn#3006 (comment).

The solution is backward compatible and needs to be implemented in other functions of the macrosynergy package that may use "ci" arguments for lineplots. It is compatible down to (and incl.) seaborn version 0.9.0 (July 2018).

@lsimonsen lsimonsen added the bug Something isn't working label Sep 29, 2022
@Magnus167 Magnus167 merged commit 278912e into develop Sep 30, 2022
@lsimonsen lsimonsen deleted the bugfix/view_timelines_515 branch October 10, 2022 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

view_timelines runs very very slowly now
2 participants