pyTMD icon indicating copy to clipboard operation
pyTMD copied to clipboard

AtributeError running compute_tidal_currents.py

Open carlosmry opened this issue 3 years ago • 2 comments

Hi!

I am trying to run the compute_tidal_currents.py script to get the tidal components from TPXO9-atlas-v5. However, I am getting the following error message:

... line 430, in arguments choices = sorted(pyTMD.io.model.ocean_current()) AttributeError: module 'pyTMD' has no attribute 'io'

Any thoughts on how to solve this?

Thanks!

carlosmry avatar Dec 28 '22 20:12 carlosmry

hi @carlosmry! I've been refactoring the code over the holiday. The model module should now be under io (as of yesterday). Maybe there's an old version in your environment somewhere?

tsutterley avatar Dec 28 '22 21:12 tsutterley

I could move that class back out of io in the PR I'm working on. Let me think about it

tsutterley avatar Dec 29 '22 05:12 tsutterley