I am using pyhelios version: 0.1.28
I am trying to change the maize flowering time by adjusting the exposed Python parameters phyllochron_min and max_nodes on the mainstem shoot type:
plant = PlantArchitecture(context)
plant.loadPlantModelFromLibrary("maize")
params = plant.getCurrentShootParameters("mainstem")
params["phyllochron_min"] = {"distribution": "constant", "parameters": [2.0]}
params["max_nodes"] = {"distribution": "constant", "parameters": [17]}
plant.defineShootType("mainstem", params)
But when I do that (and still keep the maize default values 2.0 and 17.0), tassels appear on every node (and ears are not formed). Most likely the definition of the MaizePhytomerCreationFunction in C++ gets lost when using the statement plant.defineShootType("mainstem", params). That would mean you cannot change any of teh maize parameters from Python. Is that correct? Any workaround?
I am using pyhelios version: 0.1.28
I am trying to change the maize flowering time by adjusting the exposed Python parameters phyllochron_min and max_nodes on the mainstem shoot type:
But when I do that (and still keep the maize default values 2.0 and 17.0), tassels appear on every node (and ears are not formed). Most likely the definition of the MaizePhytomerCreationFunction in C++ gets lost when using the statement plant.defineShootType("mainstem", params). That would mean you cannot change any of teh maize parameters from Python. Is that correct? Any workaround?