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

Align autogenerated dimension names when dims and default_dims are provided #2395

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lucianopaz
Copy link
Contributor

@lucianopaz lucianopaz commented Nov 13, 2024

Description

This PR closes pymc-devs/pymc#7572 and also #2397

There was a problem with auto generated dimension names for sample_posterior_predictive (but not for sample_prior_predictive). The only difference was that one code branch provided sample_dims and the other didn't, which resulted in having a list of dims in generate_dims_coords. This led to incorrect imputation of the dimension name.

Checklist

  • Follows official PR format
  • Includes a sample plot to visually illustrate the changes (only for plot-related functions)
  • New features are properly documented (with an example if appropriate)?
  • Includes new or updated tests to cover the new feature
  • Code style correct (follows pylint and black guidelines)
  • Changes are listed in changelog

📚 Documentation preview 📚: https://arviz--2395.org.readthedocs.build/en/2395/

Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.81%. Comparing base (0868c9e) to head (cc6c545).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2395   +/-   ##
=======================================
  Coverage   86.81%   86.81%           
=======================================
  Files         124      124           
  Lines       12883    12883           
=======================================
  Hits        11184    11184           
  Misses       1699     1699           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto generated dimensions in posterior predictive don't match with observed dimensions
1 participant