JuliaDynamics/Agents.jl

Extend Base.propertynames and Base.hasproperty for ABMs to allow tab-autocomplete

开放

#1,202 创建于 2026年3月3日

 (0 条评论) (0 个反应) (0 位负责人)Julia (146 个派生)batch import
good first issuequality of life

仓库指标

星标
 (904 个星标)
PR 合并指标
 (平均合并 1天 7小时) (30 天内合并 4 个 PR)

描述

Is your feature request related to a problem? Please describe. When tab completing to access properties of an ABM (model. followed by pressing tab), the fields of the ABM are shown (which can't be accessed by the model. syntax)

Describe the solution you'd like Add a new method dispatch on propertynames for ABMs. Similar ones need doing for AgentWrapperSoA and for ReinforcementLearningABM. This should enable the autocompleting. Extending hasproperty too would save a bit of a headache based on whether the abmproperties are stored as a struct or a Dict

贡献者指南