Skip to content

Make defaulting to rcParams more transparent #258

Description

@aloctavodia

Current problems

  • Currently, in arviz-stats and arviz-plots, we have arguments that default to None, and then we set them to some value from rcParams. This is always explained in the docstring, but we could have a more self-explanatory value, maybe a string like "rcparams" or "from_rcparams". We could also use more general values like "auto", "default", or something else.

  • In many places, we use Defaults to rcParams["data.sample_dims"] instead of Defaults to rcParam :data:data.sample_dims. The second has the advantage that it becomes clickable when rendered to HTML. Currently, we use this inconsistently.

  • One issue when reading the docs directly, including reading them with an IDE, is that the actual default value is not known unless we inspect rcParams. Can we automatically populate the docstrings? What else could we do to make it easier for users?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions