Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Atom indices issue #24

Closed
kyleabeauchamp opened this issue Feb 21, 2014 · 3 comments
Closed

Atom indices issue #24

kyleabeauchamp opened this issue Feb 21, 2014 · 3 comments

Comments

@kyleabeauchamp
Copy link
Contributor

kyleb@kb-intel:~/dat/kinase/hmsm$ hmsm means-ghmm --filename hmms.jsonlines --lag-time 1 --n-states 3  --dir Trajectories/ --top system.subset.pdb --ext h5 -d AtomPairs.dat -o out.csv
None
Traceback (most recent call last):
  File "/home/kyleb/opt/bin/hmsm", line 5, in <module>
    pkg_resources.run_script('mixtape==0.1', 'hmsm')
  File "/home/kyleb/opt/lib/python2.7/site-packages/pkg_resources.py", line 505, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/kyleb/opt/lib/python2.7/site-packages/pkg_resources.py", line 1245, in run_script
    execfile(script_filename, namespace, namespace)
  File "/home/kyleb/opt/lib/python2.7/site-packages/mixtape-0.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/hmsm", line 8, in <module>
    app.start()
  File "/home/kyleb/opt/lib/python2.7/site-packages/mixtape-0.1-py2.7-linux-x86_64.egg/mixtape/cmdline.py", line 174, in start
    instance = klass(args)
  File "/home/kyleb/opt/lib/python2.7/site-packages/mixtape-0.1-py2.7-linux-x86_64.egg/mixtape/commands/sample.py", line 112, in __init__
    self.atom_indices = np.loadtxt(args.atom_indices, dtype=int, ndmin=1)
  File "/home/kyleb/opt/lib/python2.7/site-packages/numpy/lib/npyio.py", line 719, in loadtxt
    raise ValueError('fname must be a string, file handle, or generator')
ValueError: fname must be a string, file handle, or generator

It seems that args.atom_indices is actually None here, presumably because I'm using pairwise distances instead.

@kyleabeauchamp
Copy link
Contributor Author

Oh I figured it out. It's not implemented, but the NotImplemented exception isn't being raised until a few lines too late.

@rmcgibbo
Copy link
Contributor

This is fixed by the featurizer framework. (Right?)

@kyleabeauchamp
Copy link
Contributor Author

Yes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants