Hi,
I am getting an error when trying to save the model from the HDDM tutorial running on my Ubuntu 20.04 machine.
The following are the package versions I am using on:
python 3.6
hddm 0.8.0
kabuki 0.6.3
The following is the code I am trying:
m = hddm.HDDM(data)
m.find_starting_values()
m.sample(2000, burn=20, dbname='traces.db', db='pickle') # took 156.6 seconds to run
m.save('~/data/hddm/2021aug24_modelSample_2000_burn20')
The error I am getting is:
ValueError: db is 'ram'. Saving a model requires a database on disk.
Trying to debug from an ipython shell:
In [16]: %debug
> /home/mohdsh/anaconda3/envs/pyHDDM/lib/python3.6/site-packages/kabuki/hierarchical.py(373)__getstate__()
371 dbname = d['mc'].db.__name__
372 if (dbname == 'ram'):
--> 373 raise ValueError("db is 'ram'. Saving a model requires a database on disk.")
374 elif (dbname == 'pickle'):
375 d['dbname'] = d['mc'].db.filename
ipdb> eval("d['mc'].db.__name__")
'ram'
Seems that the db is still 'ram' despite that I have passed the argument db='pickle'.
Any help is appreciated.
Thanks a lot.
Mohamed.