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
Hi,
The attributes of an Adel object are not updated after loading a pickled MTG.
For instance, the script below,
from alinea.adel.astk_interface import AdelWheat # Save MTG adel_wheat_1 = AdelWheat(nplants=10) g1 = adel_wheat_1.setup_canopy() adel_wheat_1.save(g1) print 'saved domain: ', adel_wheat_1.domain print 'saved nplants: ', adel_wheat_1.nplants # Loading MTG previously pickled adel_wheat_2 = AdelWheat() g2 = adel_wheat_2.load(dir=r'~\adel_saved') print 'loaded domain: ', adel_wheat_2.domain print 'loaded nplants: ', adel_wheat_2.nplants
gives:
>>> 'saved domain: ' ((-13.333333333333336, -7.5), (13.333333333333336, 7.5)) 'saved nplants: ' 10 'loaded domain: ' ((-1.3333333333333335, -7.5), (1.3333333333333335, 7.5)) 'loaded nplants: ' 1
The text was updated successfully, but these errors were encountered:
Hi @christian34 ,
did you fix this issue? I still have the problem on my machine
Thx
Sorry, something went wrong.
No branches or pull requests
Hi,
The attributes of an Adel object are not updated after loading a pickled MTG.
For instance, the script below,
gives:
The text was updated successfully, but these errors were encountered: