Open Prtm2110 opened 3 months ago
] :sparkling_heart: Thanks for opening this pull request! :sparkling_heart: The PyMC community really appreciates your time and effort to contribute to the project. Please make sure you have read our Contributing Guidelines and filled in our pull request template to the best of your ability.
Description
This PR fixes a Numpy deprecation warning by converting ndarray values to scalars in the record method.
Changes- Updated record method to convert ndarray to scalar using val.item() before assignment. Reason- Prevents future errors due to deprecated implicit array-to-scalar conversions in Numpy.
Related Issue
Checklist
Type of change
📚 Documentation preview 📚: https://pymc--7375.org.readthedocs.build/en/7375/