We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#Transpilation from Python to Crop2ML
When an array is defined in a model everything is OK. For instance
soilConstituentNames : 'Array[str]' = ["Rocks", "OrganicMatter"]
is transformed in
cdef str soilConstituentNames[] soilConstituentNames=["Rocks", "OrganicMatter"]
But when arrays are defined in functions, the initialisation is missing
thermalCondPar1 : 'Array[float]'= [0.0]*(numNodes + 1)
leads to
cdef float thermalCondPar1[]
Declare the arry on two lines
thermalCondPar1 : 'Array[float]' thermalCondPar1= [0.0]*(numNodes + 1)
The text was updated successfully, but these errors were encountered:
cyrillemidingoyi
No branches or pull requests
#Transpilation from Python to Crop2ML
When an array is defined in a model everything is OK.
For instance
is transformed in
But when arrays are defined in functions, the initialisation is missing
leads to
cdef float thermalCondPar1[]
Workaround
Declare the arry on two lines
The text was updated successfully, but these errors were encountered: