Skip to content

plant.addBaseStemShoot() > How to set max_age and how to do makePlantDormant(plantID)? #14

Description

@jandleuven

@bnbailey-psl
I am trying to create an apple tree in a commercial orchard where trees are planted in a row at a distance of only 1.5 m. I can use the apple plant library but must create an age-zero tree with a very different shape than the 'trunk with 4 scaffold branches' model in the apple plant library. That is because apple growers will prune the tree to a very different shape. I managed to do so with plant.addBaseStemShoot(), but I run in two limitations:

  1. Plants created this way seem to have a maximum age of 1000 days. In the function PlantArchitecture::buildAppleTree() in PlantLibrary.cpp this is overruled with:
plant_instances.at(plantID).max_age = 1460;

Is there a way to also do this from python for my custom-built apple tree?

  1. And how can I make my plant dormant from python, just like is done in that same function in C++
makePlantDormant(plantID);

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