You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@akorosov I have an issue regarding using custom nansat_mappers created outside the Nansat.
I have several project repositories. Each project is mounted to the /path/to/python3.7/site-packages/ so I can access it in python. Within each mounted repository in turn I have a nansat_mappers directory. The __init__.py file for all available nansat_mappers was modified according to the nansat documentation. However, the Nasnat still does not see these custom mappers. I checked the source code for the nansat and found that import of the custom mappers is implemented as follows:
As far as I understand it requires that nansat_mappers directory is mounted directly to the /path/to/python3.7/site-packages/ instead of /path/to/python3.7/site-packages/package/.
Create a directory called nansat_mappers within a directory on your $PYTHONPATH
If I mount on of the nansat_mappers directly to the site-packages it works just fine. However, it creates an issue with mounting multiple different nansat_mappers from different packages in the same environment.
The text was updated successfully, but these errors were encountered:
@akorosov I have an issue regarding using custom nansat_mappers created outside the Nansat.
I have several project repositories. Each project is mounted to the
/path/to/python3.7/site-packages/
so I can access it in python. Within each mounted repository in turn I have anansat_mappers
directory. The__init__.py
file for all available nansat_mappers was modified according to the nansat documentation. However, the Nasnat still does not see these custom mappers. I checked the source code for the nansat and found that import of the custom mappers is implemented as follows:nansat/nansat/nansat.py
Line 1595 in 74ecaf5
As far as I understand it requires that
nansat_mappers
directory is mounted directly to the/path/to/python3.7/site-packages/
instead of/path/to/python3.7/site-packages/package/
.However the documentation says (https://nansat.readthedocs.io/en/latest/source/about_mappers.html):
Create a directory called nansat_mappers within a directory on your $PYTHONPATH
If I mount on of the
nansat_mappers
directly to thesite-packages
it works just fine. However, it creates an issue with mounting multiple differentnansat_mappers
from different packages in the same environment.The text was updated successfully, but these errors were encountered: