multiply-org / prior-engine

GNU General Public License v3.0
0 stars 6 forks source link

Make use of default variable store in multiply_core #48

Open tramsauer opened 5 years ago

tramsauer commented 5 years ago

get default variables from multiply_core/variables/variables.py. e.g. in soilmoistureprior creator:

try:
    defaultvariables = multiply_core.variables.get_defaul_variables()
except:
    defaultvariables = [sm, lai, cab, ...]

or so... just to avoid duplicity in the multiply code

tramsauer commented 5 years ago

possibly

default_variables = [d[short_name].lower() for d in multiply_core.variables.get_default_variables()]

.lower() should not be necessary..

TonioF commented 5 years ago

Very nice, I approve! Just in case, you can also define your own variables if that will be necessary. I guess that it can come in handy when users submit their own priors.