[hotfix] Grassim 'Plants' missing init attributions
Summary
Plants class constructor __init__()
is missing
self.grid = grid
self.pft_composition = pft_composition
self.inits = inits
self.kc_values = kc_values
self.pft_values = pft_values
self.variables_to_save = variables_to_save
Steps to reproduce
run main.py with using any grassim configuration. ex :
crop_config = YAML_Inputs_provider(file='grassim_example.yml', subpath=os.path.join('CROPS', 'config')).inputs
Example Project
What is the current bug behavior?
Simulation does not run because self.pft_values
is used before assignment
What is the expected correct behavior?
Simulation runs
Relevant logs and/or screenshots
(Paste any relevant logs - use code blocks (```) to format console output, logs, and code, as it's very hard to read otherwise.)
Possible fixes
Add to Plants __init__()
:
self.grid = grid
self.pft_composition = pft_composition
self.inits = inits
self.kc_values = kc_values
self.pft_values = pft_values
self.variables_to_save = variables_to_save
/cc @project-manager