mattjj / pyslds

MIT License
90 stars 35 forks source link

generate_obj call fails without attribute 'gaussian_states' #28

Open ecashin opened 6 years ago

ecashin commented 6 years ago

Does this fix look reasonable?

Here is the example script error before the changes in this pull request:

ecashin@9a2fcfbcf8d3:/mnt/host$ python slds_example_figure.py
Traceback (most recent call last):
  File "slds_example_figure.py", line 240, in <module>
    z,x,y,slds = sample_slds_model()
  File "slds_example_figure.py", line 105, in sample_slds_model
    y = statesobj.data = statesobj.generate_obs()
  File "/usr/local/lib/python3.6/site-packages/pyslds/states.py", line 77, in generate_obs
    dss, gss = self.stateseq, self.gaussian_states
AttributeError: 'HMMSLDSStatesEigen' object has no attribute 'gaussian_states'
ecashin@9a2fcfbcf8d3:/mnt/host$