Skip to content

Commit 94c73a0

Browse files
committed
Ensure that all models compile in headless mode
1 parent fc40225 commit 94c73a0

8 files changed

Lines changed: 19 additions & 9 deletions

File tree

Code Examples/Extensions Examples/sr/Linear Regression Example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ to go
6868
let forecast b + x * 11
6969
if forecast < 0
7070
[ set forecast 0 ]
71-
output-show precision forecast 11
71+
output-show precision forecast 10
7272
7373
let items-found 0
7474
; move steps, depending on forecast, i.e. motivation and nutritional condition

Curricular Models/BEAGLE Evolution/Fish Tank Genetic Drift.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2055,5 +2055,5 @@ To inquire about commercial licenses for either NetLogo or specific models from
20552055
</indicator>
20562056
</shape>
20572057
</linkShapes>
2058-
<previewCommands>setup repeat 75 [ go ]</previewCommands>
2058+
<previewCommands>set auto-replace? false setup repeat 75 [ go ]</previewCommands>
20592059
</model>

HubNet Activities/Gridlock HubNet.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,5 +1483,5 @@ This activity and associated models and materials were created as part of the pr
14831483
<note x="12" y="10" backgroundDark="0" fontSize="11" width="142" markdown="false" height="165" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Affect the state of your light by pressing the Change Light button, or changing the value of the Phase slider. The Phase slider controls the point in the cycle at which your light with change, and represents a percentage of the total cycle time.</note>
14841484
<monitor x="173" precision="3" y="10" height="49" fontSize="11" width="113" display="Located At:"></monitor>
14851485
</hubNetClient>
1486-
<previewCommands>need-to-manually-make-preview-for-this-model</previewCommands>
1486+
<previewCommands>startup</previewCommands>
14871487
</model>

HubNet Activities/Memory HubNet.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ end
8585
8686
to go
8787
if not any? cards [
88-
__hubnet-broadcast-user-message winner-message
88+
hubnet-broadcast-message winner-message
8989
user-message winner-message
9090
stop
9191
]

HubNet Activities/Unverified/Public Good HubNet.nlogox

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,5 +1057,15 @@ This activity and associated models and materials were created as part of the pr
10571057
<monitor x="85" precision="3" y="188" height="49" fontSize="11" width="92" display="Money Put In"></monitor>
10581058
<button x="17" y="246" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="238" display="pay-1-dollar-to-punish-the-rich"></button>
10591059
</hubNetClient>
1060-
<previewCommands>need-to-manually-make-preview-for-this-model</previewCommands>
1060+
<previewCommands>startup
1061+
repeat 4 [ __hubnet-create-client ]
1062+
while [ not hubnet-message-waiting? ] [
1063+
wait 0.1
1064+
]
1065+
listen-clients
1066+
ask student 0 [ set user-id "Matthew" ]
1067+
ask student 1 [ set user-id "Seth" ]
1068+
ask student 2 [ set user-id "Craig" ]
1069+
ask student 3 [ set user-id "Josh" ]
1070+
go</previewCommands>
10611071
</model>
-649 Bytes
Loading

Sample Models/Biology/Wolf Sheep Predation - Agent Cognition/Wolf Sheep Predation - Micro-Sims Cognitive Model.nlogox

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ end
8787
; Initialize reward tracking system for monitoring action outcomes
8888
to setup-reward-tracking
8989
set action-labels [
90-
"↖️"
91-
"⬆️"
92-
"↗️"
90+
"NW"
91+
"N"
92+
"NE"
9393
]
9494
set samples map [ _ -> 0 ] ego-actions
9595
set rewards map [ _ -> 0 ] ego-actions

test/benchmarks/ANN Benchmark.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,5 +1081,5 @@ end]]></code>
10811081
</indicator>
10821082
</shape>
10831083
</linkShapes>
1084-
<previewCommands>setup repeat 75 [ go ]</previewCommands>
1084+
<previewCommands>setup-testing repeat 75 [ ask first layers [ set-activation one-of [0 1] ] propogate ]</previewCommands>
10851085
</model>

0 commit comments

Comments
 (0)