JuliaDynamics/Agents.jl

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

Open

#1.202 geöffnet am 3. März 2026

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Julia (146 Forks)batch import
good first issuequality of life

Repository-Metriken

Stars
 (904 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 12h 3m) (1 gemergte PR in 30 T)

Beschreibung

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

Contributor Guide