6.1.1.2.1.1.1.2.1.3. pycropml.transpiler.antlr_py.bioma.run2 module¶
- pycropml.transpiler.antlr_py.bioma.run2.redefine_params(m: Node, var_: Tuple, member_category, inputs, outputs) List[Node][source]¶
It allows to change all parameters which are instance of domain class with the explicit attributes required
- Parameters:
- Returns:
New parameters nodes
- Return type:
List[Node]
- pycropml.transpiler.antlr_py.bioma.run2.run_bioma(component, output)[source]¶
Transform a BioMA component in Crop2ML
- Parameters:
component (_type_) – bioma component path
output (_type_) – Crop2ML package path
- pycropml.transpiler.antlr_py.bioma.run2.translate(total_tree, varinfo, algo, not_declared, res_inout={}, member_category={}, instance_dclass={})[source]¶
Transform specific nodes based on class of subnodes of node. It also allows to extract some usefull information. At finish the modified node contains only the constructs of CyML and converted in CyML after applying translate_simple function.