I encountered several issues when using this command: import dolfyn.adp.api as apm
Here are the warning messages I got:
File "C:/ProgramData/Anaconda3/Lib/site-packages/test/adp_tests.py", line 1, in
import dolfyn.adp.api as apm
ImportError: cannot import name 'binner' from 'dolfyn.adp.base' (C:\ProgramData\Anaconda3\lib\site-packages\dolfyn\adp\base.py)
File "C:\ProgramData\Anaconda3\lib\site-packages\dolfyn\adp\api.py", line 3, in
from .api import read, load
ImportError: cannot import name 'read' from 'dolfyn.adp.api' (C:\ProgramData\Anaconda3\lib\site-packages\dolfyn\adp\api.py)
File "C:\ProgramData\Anaconda3\lib\site-packages\dolfyn\adp\api.py", line 3, in from .api import read_rdi, load
ImportError: cannot import name 'read_rdi' from 'dolfyn.adp.api' (C:\ProgramData\Anaconda3\lib\site-packages\dolfyn\adp\api.py)
I had those issues because I used a depreated interface of dolfyn.
With the new interface (0.10.1) import dolfyn.adp.api as apm has to be change to import dolfyn as dlfn.
Yes, the dolfyn interface has changed. I'll work on fixing this for backwards compatability, but using the new interface is definitely the preferred approach.
I encountered several issues when using this command: import dolfyn.adp.api as apm
Here are the warning messages I got:
File "C:/ProgramData/Anaconda3/Lib/site-packages/test/adp_tests.py", line 1, in
import dolfyn.adp.api as apm
ImportError: cannot import name 'binner' from 'dolfyn.adp.base' (C:\ProgramData\Anaconda3\lib\site-packages\dolfyn\adp\base.py)
File "C:\ProgramData\Anaconda3\lib\site-packages\dolfyn\adp\api.py", line 3, in
from .api import read, load
ImportError: cannot import name 'read' from 'dolfyn.adp.api' (C:\ProgramData\Anaconda3\lib\site-packages\dolfyn\adp\api.py)
File "C:\ProgramData\Anaconda3\lib\site-packages\dolfyn\adp\api.py", line 3, infrom .api import read_rdi, load
ImportError: cannot import name 'read_rdi' from 'dolfyn.adp.api' (C:\ProgramData\Anaconda3\lib\site-packages\dolfyn\adp\api.py)
I had those issues because I used a depreated interface of dolfyn. With the new interface (0.10.1) import dolfyn.adp.api as apm has to be change to import dolfyn as dlfn.
Now all work just fine.