Skip to content

Conversation

michaelosthege
Copy link
Member

What is this PR about?
Fixing an AttributeError: 'numpy.ndarray' object has no attribute 'to_string'.

This is a bit strange, because as far as I can tell np.ndarray never had a .to_string() method to beging with.
There's a tostring() which got deprecated in NumPy 1.19 however.

In any case, the f-string should fix it.

Checklist

Major / Breaking Changes

None

Bugfixes / New features

Fixes an AttributeError in the "Bad initial energy" warning.

Docs / Maintenance

None

@codecov
Copy link

codecov bot commented Aug 8, 2022

Codecov Report

Merging #6037 (e89665c) into main (ad16bf4) will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6037      +/-   ##
==========================================
+ Coverage   89.27%   89.29%   +0.02%     
==========================================
  Files          72       72              
  Lines       12890    12890              
==========================================
+ Hits        11507    11510       +3     
+ Misses       1383     1380       -3     
Impacted Files Coverage Δ
pymc/step_methods/hmc/base_hmc.py 90.55% <ø> (ø)
pymc/parallel_sampling.py 86.79% <0.00%> (+0.99%) ⬆️

@michaelosthege michaelosthege merged commit ef2519f into main Aug 10, 2022
@michaelosthege michaelosthege deleted the fix-tostring-attributeerror branch August 10, 2022 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants