Add ability to pass agents to python
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Non vengono indicati file o test. Inizia tracciando il comportamento esistente di py:set e py:runresult, quindi definisci come le variabili degli agenti diventano oggetti Python di sola lettura simili a dict. Il lavoro è completato quando gli agenti possono essere passati a Python e la documentazione dichiara chiaramente che i valori possono diventare obsoleti dopo modifiche in NetLogo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I think they should be represented as dict-like objects, where keys are agent variables.
For a first pass, they should be read-only.
One tricky thing is keeping them in sync with NetLogo. For instance:
py:set "t" turtle 0
ask turtle 0 [ set color red ]
print py:runresult "t['color']" ;; This will be out of date
I think just not caring is good enough for a first pass, as long as it's clear in the docs. Otherwise, we'd have to track and sync all agent-objects on every call, which sounds awful.
I think they should be represented as dict-like objects, where keys are agent variables.
For a first pass, they should be read-only.
One tricky thing is keeping them in sync with NetLogo. For instance:
py:set "t" turtle 0
ask turtle 0 [ set color red ]
print py:runresult "t['color']" ;; This will be out of date
I think just not caring is good enough for a first pass, as long as it's clear in the docs. Otherwise, we'd have to track and sync all agent-objects on every call, which sounds awful.
Copied from https://github.com/qiemem/PythonExtension/issues/2
- Lingua principale
- Scala
- Stelle
- 31
- Fork
- 16
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NetLogo/Python-Extension
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
NetLogo/Python-Extension#27 · 3 commenti ·
-
Drop Python 2 support Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
NetLogo/Python-Extension#24 · 2 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
NetLogo/Python-Extension#17 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
NetLogo/Python-Extension#16 · 6 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
Tutte le issue di NetLogo/Python-Extension
Issue simili
-
RS_PixelAsPoint raises out of grid where RS_PixelAsCentroid and RS_PixelAsPolygon extrapolate Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Area: Excel support
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
orbeon/orbeon-forms#7893 ·
-
x:action/fix x:module/practice-exercise x:size/small
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
lichess-org/lila#21788 · 2 commenti ·
-
area:Iceberg area:writer documentation requires-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
apache/datafusion-comet#6147 ·