mattjj / pyhsmm

MIT License
547 stars 173 forks source link

add_data_parallel #4

Closed inti closed 11 years ago

inti commented 11 years ago

Hi, I realised you added the code to sample in parallel for the stickyHMM, great! I think the function for add_data_parallel may be missing from the HMM class on pyhsmm/models.py though.

cheers, Inti

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/home/inti/.local/lib/python2.7/site-packages/IPython/utils/py3compat.pyc in execfile(fname, *where)
    176             else:
    177                 filename = fname
--> 178             __builtin__.execfile(filename, *where)

/home/inti/My_Soft/cnv-hdp-hmm/cnv_calling_parallel.py in <module>()
    101 print "loading data in parallel"
    102 for data_id in parallel.alldata.keys():
--> 103     model.add_data_parallel(data_id)
    104 
    105 

AttributeError: 'StickyHMM' object has no attribute 'add_data_parallel'
mattjj commented 11 years ago

Thanks! Fixed in 0a34974. Pull master and give it a shot; let me know if anything acts weird. (Remember all the engines generally need to be restarted when the code changes.)

inti commented 11 years ago

thanks, now it works just fine