Add ability to pass agents to python
まだ誰も着手していません。
評価
調査の方向性
ファイルやテストは指定されていません。まず既存の py:set と py:runresult の動作を追跡し、次にエージェント変数を読み取り専用の dict のような Python オブジェクトにする方法を定義してください。エージェントを Python に渡せるようになり、NetLogo の変更後は値が古くなる可能性があることをドキュメントに明確に記載できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Scala
- スター
- 31
- フォーク
- 16
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NetLogo/Python-Extension のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
NetLogo/Python-Extension#27 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
NetLogo/Python-Extension#24 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
NetLogo/Python-Extension#17 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
NetLogo/Python-Extension#16 · コメント 6 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
NetLogo/Python-Extension の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
requires-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
apache/datafusion-comet#6060 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
lichess-org/lila#21756 ·
-
[VL] madvise(WILLNEED) call fails in MmapFileStream because of wrong calculation of fetching length オープンbug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100