aquacropos / aquacrop

AquaCrop-OSPy: Python implementation of AquaCrop-OS
https://aquacropos.github.io/aquacrop/
Apache License 2.0
102 stars 73 forks source link

data structures/ namedtuples / structrefs #36

Open thomasdkelly opened 2 years ago

thomasdkelly commented 2 years ago

Some more of the python classess (e.g. FieldMngtClass) still need to be changed into namedtuples.

numba structref currently does not support getting or mutating attributes inside purely python code. This is neccessary for the NewCond data structure as this needs to be accessed and mutated inside both python and AOT compiled code.

thomasdkelly commented 2 years ago

Lots of duplicate classes (e.g. CropStruct) are no longer used as it is a named tuple. These can now be removed from the code