Skip to content

PlantArchitecture: adjusting maize shoot parameters seems not to work #16

Description

@jandleuven

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions