pymc
pymc copied to clipboard
Adding add_coords function
This adds the add_coords function so that coords can be updated without needing to explicitly mentioning a model
Checklist
- [x] Make sure that the pre-commit linting/style checks pass.
- [x] Are the changes covered by tests and docstrings?
- [x] Fill out the short summary sections 👇
New features
- Add a new function
:books: Documentation preview :books:: https://pymc--7037.org.readthedocs.build/en/7037/
Codecov Report
Merging #7037 (58c03e8) into main (915e6a2) will increase coverage by
0.00%. The diff coverage is100.00%.
Additional details and impacted files
@@ Coverage Diff @@
## main #7037 +/- ##
=======================================
Coverage 92.16% 92.16%
=======================================
Files 101 101
Lines 16827 16830 +3
=======================================
+ Hits 15509 15512 +3
Misses 1318 1318
| Files | Coverage Δ | |
|---|---|---|
| pymc/model/core.py | 91.78% <100.00%> (+0.03%) |
:arrow_up: |
Would something that can also update existing coords be more useful? Perhaps named set_coords?
Would something that can also update existing coords be more useful? Perhaps named
set_coords?
Maybe, but updating coords likely would require something like the tricky shape-checking logic in set_data. Is there a use-case you have in mind for set_coords?