Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: PNoM 2 - enable multi-line code input widgets #412

Merged
merged 1 commit into from
Aug 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Curricular Models/PNoM/PNoM 2 Diffusion Sensor Sandbox.nlogo
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ INPUTBOX
code1
;average (mean) number of violet particles nearby, over whole history.\nrecord (count particles in-radius 3 with [color-type = violet] ) \nset reading mean my-history\nset reading precision reading 1\n \n;turn the sensor \"on\" (white) if the reading is > 1. \nset light-up-threshold 1
1
0
1
String (commands)

INPUTBOX
Expand All @@ -894,7 +894,7 @@ INPUTBOX
code2
;cumulative count (sum) of violet particles that touch the sensor \nrecord (count particles-here with [color-type = violet])\nset reading sum my-history\nset reading precision reading 1\n \n;turn the sensor \"on\" (white) if the reading is > 50. \nset light-up-threshold 50
1
0
1
String (commands)

INPUTBOX
Expand All @@ -905,7 +905,7 @@ INPUTBOX
code3
;instantaneous count of violet particles that are nearby NOW (last measure) \nrecord (count particles-here with [color-type = violet])\nset reading last my-history\nset reading precision reading 1\n \n;turn the sensor \"on\" (white) if the reading is > 1. \nset light-up-threshold 1
1
0
1
String (commands)

INPUTBOX
Expand All @@ -916,7 +916,7 @@ INPUTBOX
code4
;running average number of violet particles nearby, over last 20 ticks.\nrecord (count particles in-radius 3 with [color-type = violet] )\nif (length my-history > 20) [ \n let recent-data (sublist my-history ((length my-history) - 20) (length my-history)) \n set reading mean recent-data\n set reading precision reading 1\n]\n;turn the sensor \"on\" (white) if the reading is > 1. \nset light-up-threshold 1
1
0
1
String (commands)

PLOT
Expand Down Expand Up @@ -1065,7 +1065,7 @@ INPUTBOX
example1
;average number of violet particles nearby, over whole history.\nrecord (count particles in-radius 3 with [color-type = violet] ) \nset reading mean my-history\nset reading precision reading 1\n \n;turn the sensor \"on\" (white) if the reading is > 1. \nset light-up-threshold 1
1
0
1
String (commands)

INPUTBOX
Expand All @@ -1076,7 +1076,7 @@ INPUTBOX
example2
;cumulative count of violet particles that touch the sensor \nrecord (count particles-here with [color-type = violet])\nset reading sum my-history\nset reading precision reading 1\n \n;turn the sensor \"on\" (white) if the reading is > 50. \nset light-up-threshold 50
1
0
1
String (commands)

INPUTBOX
Expand All @@ -1087,7 +1087,7 @@ INPUTBOX
example3
;instantaneous count of violet particles that are nearby NOW \nrecord (count particles-here with [color-type = violet])\nset reading last my-history\nset reading precision reading 1\n \n;turn the sensor \"on\" (white) if the reading is > 1. \nset light-up-threshold 1
1
0
1
String (commands)

INPUTBOX
Expand All @@ -1098,7 +1098,7 @@ INPUTBOX
example4
;running average number of violet particles nearby, over last 20 ticks.\nrecord (count particles in-radius 3 with [color-type = violet] )\nif (length my-history > 20) [ \n let recent-data (sublist my-history ((length my-history) - 20) (length my-history)) \n set reading mean recent-data\n set reading precision reading 1\n]\n;turn the sensor \"on\" (white) if the reading is > 1. \nset light-up-threshold 1
1
0
1
String (commands)

MONITOR
Expand Down
Loading