-
Notifications
You must be signed in to change notification settings - Fork 98
Notes on Model Czar Process
Jacob Kelter edited this page Jan 28, 2026
·
5 revisions
- Sample Models go through full review (Reviewing a Model for the Library) and can be rejected from the library.
- Curricular models should have a review, but the standard is lower (Curricular models are typically only submitted by CCL people)
- Code examples don't need external review
- Go to NetLogo/models repo
- Make sure you are on the
mainbranch- pull from main:
git pull origin main
- pull from main:
- put model files in the proper folder (e.g., Sample Models/Social Science)
- Run the Notarizer to notarize the model (see here)
- The Notarizer is what automatically fills in the HOW TO CITE and COPYRIGHT AND LICENSE information in the info tab.
- Start running tests, and they will then remind you what steps to fix all the tests. (see Running tests section below)
- After all tests are passing, then update Changes Since Previous Release with the what has been updated and remove the model from Models in Review or Coming Up if it was listed there.
- Once a new release goes out, you can clear Changes Since Previous Release since all that information is now officially in the release notes and we don't need to track it separately any more.
To test all the models (often a good idea before adding the model):
- run
sbtto enter sbt (from the models repo) - run
test
To test an individual model:
- If the model name has no spaces in it, run
testOnly * -- -Dmodel=namefrom insidesbt, wherenameis the name of the model - If the name has spaces wrap the whole command in double quotes:
testOnly * -- "-Dmodel=name with spaces"wherename with spacesis the name of the model.
To run a single test on all the models:
- Run
testOnly *NameOfTestwhereNameOfTestis the filename of the test such asLegalInformationTests
More info at Automated Tests
There are three options for model previews
- manual
- default - created by running model
- create commands in "Preview Commands Editor" for commands to run to create preview image
If you are using option 2 or 3, need to go to .gitignore and add the model's .png preview which will be autogenerated so that your local version won't get committed
In models/src/test/resources/modelwords.txt add the word if it is needed.
Add the model in src/test/scala/org/nlogo/models/CodeTests.scala if needed.
If a model should be listed in more than one folder, update crossReference.conf with where it should be cross-listed. See Models Cross Referencing
After a release, NetLogo version should be changed in test files:
Models Library Editing
- Notes on Model Czar Process
- Recent and upcoming changes
- On review process
- Testing and actually adding models
- Misc.