Updating a script to GAMA 1.9: warning in list issue #638
Unanswered
HugoFernandezMena
asked this question in
Q&A
Replies: 1 comment
-
Hi Hugo,
This means that you have a global attribute named Grain_Collectors in the
global.
Cheers
Benoit
Le ven. 9 mai 2025 à 17:20, HugoFernandezMena ***@***.***> a
écrit :
… Good morning,
I am trying to update the FAN model to GAMA 1.9 version.
The FAN model was published here:
https://doi.org/10.1016/j.agsy.2019.102718
I modified several issues with the quick fix tool, but did not manage to
solve this warning when creating lists:
// *************** Generic species list
*******************************************
list all_partners -> { agents of_generic_species partner } ;
list all_farms -> { agents of_generic_species farm };
list exchanging_farms ;
list<Anaerobic_Digester> Anaerobic_Digesters -> { agents
of_generic_species Anaerobic_Digester};
Warning: This declaration of Grain_Collectors shadows the declaration of
an attribute of Multiplesimulationdisplay_model
list<Grains_Feed_Collector>Grain_Collectors <- all_partners where
(each.is_Grains_Feed_Collector=true) ;
Any ideas?
—
Reply to this email directly, view it on GitHub
<#638>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAL3WSSEWDZUEJPTEIZRMIL25R6NPAVCNFSM6AAAAAB4YWOH2KVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYGI4TSMJRGA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Good morning,
I am trying to update the FAN model to GAMA 1.9 version.
The FAN model was published here: https://doi.org/10.1016/j.agsy.2019.102718
I modified several issues with the quick fix tool, but did not manage to solve this warning when creating lists.
The problem seems to be linked to using the expression "agents_X where (each.is_Y = true)". Any ideas of alternative writing?
The whole code with the includes is available here:
https://drive.google.com/drive/folders/1KC3sRG6TfVrbPtXT5lF59OcSoEUvExup?usp=drive_link
Beta Was this translation helpful? Give feedback.
All reactions