Skip to content

Conversation

williambdean
Copy link
Contributor

@williambdean williambdean commented Aug 2, 2025

Description

This allows users to create sample_stats group in the mock sample helper

Related Issue

  • Closes #
  • Related to #

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

📚 Documentation preview 📚: https://pymc--7887.org.readthedocs.build/en/7887/

@codecov
Copy link

codecov bot commented Aug 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.33%. Comparing base (0960323) to head (f63db84).
⚠️ Report is 12 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #7887      +/-   ##
==========================================
- Coverage   92.94%   89.33%   -3.61%     
==========================================
  Files         116      116              
  Lines       18851    18912      +61     
==========================================
- Hits        17521    16895     -626     
- Misses       1330     2017     +687     
Files with missing lines Coverage Δ
pymc/testing.py 90.18% <100.00%> (+0.20%) ⬆️

... and 33 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@williambdean
Copy link
Contributor Author

Any updates needed for this?

Copy link
Member

@fonnesbeck fonnesbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just one very minor nit.

from arviz import InferenceData
from numpy import random as nr
from numpy import testing as npt
from numpy.typing import NDArray
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just use npt.NDArray as the code example in the docstring does?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that numpy.testing as already imported as npt above. So I switched the docstring to use NDArray as well.

@williambdean
Copy link
Contributor Author

Getting some unrelated test failures now: https://github.com/pymc-devs/pymc/actions/runs/18698891077/job/53323157592

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.

2 participants