-
Notifications
You must be signed in to change notification settings - Fork 97
Notes on Model Czar Process
Jacob Kelter edited this page Aug 19, 2025
·
1 revision
- 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
- Code examples don't need external review
- Go to NetLogo/models repo
- Make sure you are on the
main
branch- 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)
- 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.
- 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
sbt
to 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=name
from insidesbt
, wherename
is the name of the model - If the name has spaces wrap the whole command in double quotes:
testOnly * -- "-Dmodel=name with spaces"
wherename with spaces
is the name of the model.
To run a single test on all the models:
- Run
testOnly *NameOfTest
whereNameOfTest
is 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
- Changes Since Previous Release
- Reviewing a Model for the Library
- Template Letter for Requesting a Review of a Model
- Automated Tests
- Resaving Models in the Newest Release
- Copyright and Citation Info
- Models Cross Referencing
- Models Library Statistics
- What is a Code Example?
- What is a Curricular Model?