AgriculturalModelExchangeInitiative / PyCrop2ML

CropML Python library
Other
17 stars 16 forks source link

Lost initialization of variables in transpilation when precising type on the same line (in python at least) #193

Closed orianebro closed 1 year ago

orianebro commented 1 year ago

Initial lines in Python: x: float = 0.0 y = 1.0

Lines in CyML (.pyx file): cdef float x y=1.0

Lines in transpiled Python file: x:float y = 1.0