From b1e958fb971f3a6a41d94e7f46ec32913a2a3b6a Mon Sep 17 00:00:00 2001 From: Kristof Van Tricht Date: Thu, 30 May 2024 17:17:29 +0200 Subject: [PATCH 1/4] Uupdated requirements --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6b6133dd..d21dcc18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ dependencies = [ "rioxarray>=0.13.0", "loguru>=0.7.2", "h5netcdf>=1.2.0", - "openeo[localprocessing]", + "openeo", "cftime", "pytest-depends", "pyarrow", @@ -62,7 +62,7 @@ profile = "black" [tool.ruff] -# line-length = 100 +# line-length = 88 [tool.ruff.lint] select = ["E", "F"] From b9fe9f06f30c42542bb89e77649e2bcd06828cda Mon Sep 17 00:00:00 2001 From: Kristof Van Tricht Date: Thu, 30 May 2024 17:21:52 +0200 Subject: [PATCH 2/4] Add test notebook --- notebooks/test_mvp.ipynb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 notebooks/test_mvp.ipynb diff --git a/notebooks/test_mvp.ipynb b/notebooks/test_mvp.ipynb new file mode 100644 index 00000000..fd24e008 --- /dev/null +++ b/notebooks/test_mvp.ipynb @@ -0,0 +1,26 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# Test" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "worldcereal", + "language": "python", + "name": "worldcereal" + }, + "language_info": { + "name": "python", + "version": "3.10.0" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} From 9870ac973050d6a5521fef50e4f0189e22a7abca Mon Sep 17 00:00:00 2001 From: Kristof Van Tricht Date: Fri, 31 May 2024 13:37:58 +0200 Subject: [PATCH 3/4] First version environment.yml --- environment.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 environment.yml diff --git a/environment.yml b/environment.yml new file mode 100644 index 00000000..d2522c17 --- /dev/null +++ b/environment.yml @@ -0,0 +1,25 @@ +name: worldcereal-official +channels: + - conda-forge + - defaults +dependencies: + - catboost=1.2.5 + - einops=0.8.0 + - fastparquet=2024.2.0 + - folium=0.16.0 + - gdal=3.8.5 + - geojson=3.1.0 + - geopandas=0.14.4 + - h5netcdf=1.3.0 + - h5py=3.11.0 + - loguru=0.7.2 + - openeo=0.29.0 + - pyarrow=16.1.0 + - python=3.10.0 + - pytorch=2.3.0 + - rasterio=1.3.10 + - rioxarray=0.15.5 + - scikit-image=0.22.0 + - scikit-learn=1.5.0 + - shapely=2.0.4 + From b9c5792cab72f5785fad5b00b87ac1d64be7b23c Mon Sep 17 00:00:00 2001 From: Kristof Van Tricht Date: Fri, 31 May 2024 16:17:19 +0200 Subject: [PATCH 4/4] Updated MVP --- notebooks/test_mvp.ipynb | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/notebooks/test_mvp.ipynb b/notebooks/test_mvp.ipynb index fd24e008..e2027bd5 100644 --- a/notebooks/test_mvp.ipynb +++ b/notebooks/test_mvp.ipynb @@ -1,12 +1,39 @@ { "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## This should hold the WorldCereal System V1 demo" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# Test if the environment is working\n", + "import catboost\n", + "import torch\n", + "import openeo\n", + "# import gfmap" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### Test OpenEO connection" + ] + }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ - "# Test" + "c = openeo.connect(\"openeo.dataspace.copernicus.eu\").authenticate_oidc()" ] } ],