Open-EO / openeo-geotrellis-extensions

Java/Scala extensions for Geotrellis, for use with OpenEO GeoPySpark backend.
Apache License 2.0
5 stars 3 forks source link

add JEP UdfTest to jenkins tests #255

Open JeroenVerstraelen opened 6 months ago

JeroenVerstraelen commented 6 months ago

https://github.com/Open-EO/openeo-geotrellis-extensions/blob/develop/openeo-geotrellis/src/test/scala/org/openeo/geotrellis/udf/UdfTest.scala

Ensure that the python environment has all the required modules installed.
Numpy should be installed before Jep for off-heap memory tiles to work!

Note: In order to run these tests you need to set several environment variables.
If you use the virtual environment venv (with JEP and Numpy installed):
1. LD_LIBRARY_PATH = .../venv/lib/python3.8/site-packages/jep
  This will look for the shared library 'jep.so'. This is the compiled C code that binds Java and Python.
2. PATH = .../venv/bin:$PATH
  This will ensure your virtual environment is used instead of your default python interpreter.
  These modules are also required:
  pip install numpy xarray openeo