In pyroms/pyroms/src there are several .f files (interp.f, iso.f, ..., remapping_fast_weighted.f) and at the beginning of pyroms/setup.py there is code to build the corresponding extension using numpy.distutils.
In a lot of the example files there is a call to "import _remapping". For example, examples/Arctic2/remap.py has the following lines:
When I try these commands at the Python prompt, the final one doesn't work, eg.
>>> import pyroms
>>> import pyroms_toolbox
>>> import _remapping
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named '_remapping'
However this form does work:
>>> from pyroms import _remapping
Is this a mistake in the example file, or is there something I'm failing to understand about Python imports in this context?
In pyroms/pyroms/src there are several .f files (interp.f, iso.f, ..., remapping_fast_weighted.f) and at the beginning of pyroms/setup.py there is code to build the corresponding extension using numpy.distutils.
In a lot of the example files there is a call to "import _remapping". For example, examples/Arctic2/remap.py has the following lines:
When I try these commands at the Python prompt, the final one doesn't work, eg.
However this form does work:
>>> from pyroms import _remapping
Is this a mistake in the example file, or is there something I'm failing to understand about Python imports in this context?