tjlane / thor

support code for x-ray scattering experiments
GNU General Public License v2.0
3 stars 3 forks source link

incompatible with latest mdtraj #13

Closed dermen closed 10 years ago

dermen commented 10 years ago
In [1]: import thor
WARNING:xsdimage:lxml library is probably not part of your python installation: disabling xsdimage format
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-0103ce0c7928> in <module>()
----> 1 import thor

/Users/mender/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/thor/__init__.py in <module>()
      7 
      8 # dump a few things into the THOR namespace
----> 9 from xray import *
     10 
     11 # list all the files included in THOR

/Users/mender/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/thor/xray.py in <module>()
     31 
     32 from mdtraj import io
---> 33 from mdtraj.utils.arrays import ensure_type
     34 
     35 # ------------------------------------------------------------------------------

ImportError: No module named arrays
dermen commented 10 years ago

seems the function ensure_type can be imported directly from`mdtraj.utils```. I committed the patch.

tjlane commented 10 years ago

cool thanks!