NetLogo / NetLogo/LevelSpace

Updating changed models' code

Open
#51 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Scala
Stars
20
Forks
8
PR merge metrics
No merged PRs in 30d

Description

If you change a child model's code, you currently need to reload the model, thus losing its current state.

I am wondering if we can update the code in models that have already been loaded. It seems to be possible in main NetLogo (if you set up a model, run it a bit, change one of its procedures, and run it again, it will run with the changed procedure). So it seems that you can change the code of a model without wiping its state.

Can we somehow transfer that feature to LevelSpace?

Related to https://github.com/NetLogo/LevelsSpace/issues/43

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing LevelSpace's behavior with main NetLogo, where a changed procedure can run without wiping model state. Read the related issue #43 for context. Done means loaded child models can accept code changes while preserving their current state.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.