shaharkadmiel / pySW4

Setup, run, post process, and visualize numerical simulations. Primarily SW4
http://shaharkadmiel.github.com/pySW4
GNU General Public License v3.0
28 stars 14 forks source link

cannot import Inventory #3

Closed shaharkadmiel closed 8 years ago

shaharkadmiel commented 8 years ago
pySW4/core/scripts/plotting.py", line 8, in <module>
    from obspy import read, Stream, read_inventory, Inventory
ImportError: cannot import name Inventory

@megies, I believe Inventory is not imported to the obspy namespace so at the moment i am adding from obspy.station.inventory import Inventory to the imports section in pySW4.core.scripts.plotting

megies commented 8 years ago

Yes, probably Inventory is not in top level namespace in obspy 0.10.2.. so this is the right thing to do (for now, this will change in the next major release).