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

HDF5 Issue #10

Open
kyleabeauchamp opened this issue Apr 27, 2015 · 3 comments
Open

HDF5 Issue #10

kyleabeauchamp opened this issue Apr 27, 2015 · 3 comments

Comments

@kyleabeauchamp
Copy link
Collaborator

As John mentioned, there might actually be an issue with the HDF5 backend. I will look into it.

Sampling finished normally.
Warning, unable to save state.
Error message:
Traceback (most recent call last):
  File "/home/kyleb/opt/lib/python2.7/site-packages/pymc/Model.py", line 777, in save_state
    self.db.savestate(self.get_state())
  File "/home/kyleb/opt/lib/python2.7/site-packages/pymc/database/hdf5.py", line 503, in savestate
    cur_chain._state_[0] = state
  File "/home/kyleb/opt/lib/python2.7/site-packages/tables/vlarray.py", line 785, in __setitem__
    self._assign_values(coords, value)
  File "/home/kyleb/opt/lib/python2.7/site-packages/tables/vlarray.py", line 718, in _assign_values
    nparr[:], exc))
ValueError: Value parameter:
'array([128,   2, 125, ..., 117, 117,  46], dtype=uint8)'
cannot be converted into an array object compliant vlarray[0] row: 
'array([128,   2, 125, ..., 117, 117,  46], dtype=uint8)'
The error was: <could not broadcast input array from shape (3395) into shape (3397)>
@pgrinaway
Copy link
Member

Huh, ok, I'll temporarily disable the hdf5 backend, then?

@kyleabeauchamp
Copy link
Collaborator Author

The issue can be avoided by removing the save_interval flag. The link to the pymc issue is above.

@jchodera
Copy link
Member

jchodera commented Apr 27, 2015 via email

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

No branches or pull requests

3 participants