How to run my example plugin?
How can [https://gitlab.dkrz.de/g300050/heat2urbanimpact-test/-/blob/master/heat2urbanimpact-test-wrapper-api.py?ref_type=heads] and [https://gitlab.dkrz.de/g300050/heat2urbanimpact-test/-/blob/master/src/heat2urbanimpact_test/scientific_code.py?ref_type=heads] "communicate" with each other?
I think of it this way: The input/facets are somehow stored in an automatically created json-file called config_dict (or json_file?). The scientific_code.py is called with the line "self.call(f"python scientific_code.py {config_dict}")" and this also passes all the input/facets the function test_inputfacets in scientific_code.py needs.
From the last time a created a plugin I remember that a function would be called like this from the wraper:
from scientific_code import test_inputfacets test_inputfacets(outputdir,experiment,shape_file,region,split_by,event,length_of_event,months_of_event,impact_model)
Does it work the same way?
And assuming I did everything correctly, my next steps to test the plugin (firstly without doing the "plug in my plugin" on the freva website) would be:
export EVALUATION_SYSTEM_PLUGINS=/home/g/g300050/NUKLEUS/heat2urbanimpact_test/heat2urbanimpact-test,heat2urbanimpact-test-wrapper-api.py
freva plugin heat2urbanimpact_testPlugin
(because heat2urbanimpact_testPlugin is the class defined in the wrapper, but maybe there went something wrong while creating the plugin template)
@k202187: As you can see/read, I have a lot to talk about when we zoom again. When you have time on Friday, maybe we can zoom right after the data management meeting?