EcoExtreML / STEMMUS_SCOPE_Processing

Python modules and notebooks to process data and run STEMMUS-SCOPE model
https://pystemmusscope.readthedocs.io/en/latest/
Apache License 2.0
5 stars 1 forks source link

Matlab R2021a incompatible with Python 3.9 #31

Closed SarahAlidoost closed 2 years ago

SarahAlidoost commented 2 years ago

On Snellius and CRIB, matlab R2021a is installed that supports python 3.7 and 3.8. see python compatibility.

BSchilperoort commented 2 years ago

That's crazy. Python 3.7 has under a year left, and python 3.8 will reach its end of life in two years. These version checks must be hardcoded.

I'm not sure about setting the required python version to 3.8. When other users but ITC (including us...) want to use the model's executable with the python notebook / the future BMI, restricting the Python version makes no sense.

SarahAlidoost commented 2 years ago

agree. The conda environment with python=3.8 is only needed to call python from matlab. The environment is needed by developers who only work with matlab desktop interface e.g. developers on CRIB. PyStemmusScope already supports both 3.8 and 3.9. When python 3.8 reaches its end of life, of course, matlab should be upgraded on CRIB.

I think it is better if I create a separate environment file with python=3.8 that will be used for this purpose. The environment does not need to be even activated outside a matlab session. We can also use the jupyter notebook interface on systems like snellius (call matlab from python) e.g. run_model_in_notebook_dev.ipynb.