-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
Use only is_circular
argument in plot_dist
#1681
Use only is_circular
argument in plot_dist
#1681
Conversation
@@ -522,6 +522,8 @@ def kde(x, circular=False, **kwargs): | |||
arviz.stats.density_utils.kde: Arviz KDE estimator | |||
""" | |||
if circular: | |||
if circular == "degrees": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that _kde_circular
assumes inputs are in radians I added this internal conversion. We can discuss where else we can place it or if it should exist at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I think the conversion is fine where it is
is_circular
argument in plot_dist
is_circular
argument in plot_dist
* use only is_circular argument * change xlabels * update posteriorplot and traceplot * update bokeh plots * add internal conversion for inputs in degrees * update changelog and docstrings
Description
circular
was used to indicate"taylor"
bandwidht for thekde
function and it co existed with theis_circular
argument. In this PR I removedcircular
in favor ofis_circular
.Checklist