Skip to content

Commit 01fa20e

Browse files
committed
Fix fractional patch sizes on many models
1 parent c18fe61 commit 01fa20e

27 files changed

Lines changed: 27 additions & 27 deletions

Sample Models/Biology/Disease Solo.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ end
161161
; Copyright 2005 Uri Wilensky.
162162
; See Info tab for full copyright and license.]]></code>
163163
<widgets>
164-
<view x="281" wrappingAllowedX="false" y="10" frameRate="10.0" minPycor="-12" height="472" showTickCounter="true" patchSize="18.72" fontSize="10" wrappingAllowedY="false" width="397" tickCounterLabel="ticks" maxPycor="12" updateMode="1" maxPxcor="10" minPxcor="-10"></view>
164+
<view x="281" wrappingAllowedX="false" y="10" frameRate="10.0" minPycor="-12" height="475" showTickCounter="true" patchSize="19.0" fontSize="10" wrappingAllowedY="false" width="399" tickCounterLabel="ticks" maxPycor="12" updateMode="1" maxPxcor="10" minPxcor="-10"></view>
165165
<button x="24" y="65" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="102" display="setup/clear">setup-clear</button>
166166
<button x="24" y="145" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="102">go</button>
167167
<button x="24" y="105" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="102" display="setup/keep">setup-keep</button>

Sample Models/Biology/Evolution/Baldwin Effect.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ end
263263
; Copyright 2023 Uri Wilensky.
264264
; See Info tab for full copyright and license.]]></code>
265265
<widgets>
266-
<view x="715" wrappingAllowedX="false" y="7" frameRate="30.0" minPycor="-5" height="600" showTickCounter="true" patchSize="5.3704" fontSize="10" wrappingAllowedY="false" width="439" tickCounterLabel="ticks" maxPycor="105" updateMode="1" maxPxcor="40" minPxcor="-40"></view>
266+
<view x="715" wrappingAllowedX="false" y="7" frameRate="30.0" minPycor="-5" height="555" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="false" width="405" tickCounterLabel="ticks" maxPycor="105" updateMode="1" maxPxcor="40" minPxcor="-40"></view>
267267
<slider x="20" step="1" y="7" max="500" width="250" display="num-pop" height="50" min="1" direction="Horizontal" default="200.0" variable="num-pop"></slider>
268268
<slider x="20" step="1" y="60" max="100" width="250" display="gene-length" height="50" min="1" direction="Horizontal" default="30.0" variable="gene-length"></slider>
269269
<slider x="20" step="0.01" y="115" max="1" width="250" display="plasticity" height="50" min="0" direction="Horizontal" default="0.5" variable="plasticity"></slider>

Sample Models/Biology/Evolution/Genetic Drift/GenDrift T interact.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ end
9696
; Copyright 1997 Uri Wilensky.
9797
; See Info tab for full copyright and license.]]></code>
9898
<widgets>
99-
<view x="455" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-17" height="465" showTickCounter="true" patchSize="13.17143" fontSize="10" wrappingAllowedY="true" width="465" tickCounterLabel="ticks" maxPycor="17" updateMode="1" maxPxcor="17" minPxcor="-17"></view>
99+
<view x="455" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-17" height="455" showTickCounter="true" patchSize="13.0" fontSize="10" wrappingAllowedY="true" width="455" tickCounterLabel="ticks" maxPycor="17" updateMode="1" maxPxcor="17" minPxcor="-17"></view>
100100
<monitor x="255" precision="2" y="70" height="60" fontSize="11" width="117" display="% most populous">max-percent</monitor>
101101
<plot x="10" autoPlotX="true" yMax="70.0" autoPlotY="true" yAxis="Number" y="135" xMin="0.0" height="223" legend="false" xMax="100.0" yMin="0.0" width="360" xAxis="Time" display="Turtle Populations">
102102
<setup>set-plot-y-range 0 count turtles</setup>

Sample Models/Biology/Evolution/Genetic Drift/GenDrift T reproduce.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444
; Copyright 1997 Uri Wilensky.
4545
; See Info tab for full copyright and license.]]></code>
4646
<widgets>
47-
<view x="400" wrappingAllowedX="true" y="7" frameRate="30.0" minPycor="-22" height="435" showTickCounter="true" patchSize="9.58" fontSize="10" wrappingAllowedY="true" width="435" tickCounterLabel="ticks" maxPycor="22" updateMode="1" maxPxcor="22" minPxcor="-22"></view>
47+
<view x="400" wrappingAllowedX="true" y="7" frameRate="30.0" minPycor="-22" height="435" showTickCounter="true" patchSize="9.5" fontSize="10" wrappingAllowedY="true" width="435" tickCounterLabel="ticks" maxPycor="22" updateMode="1" maxPxcor="22" minPxcor="-22"></view>
4848
<button x="4" y="7" height="50" disableUntilTicks="false" forever="false" kind="Observer" width="75" display="setup">setup</button>
4949
<button x="90" y="7" height="50" disableUntilTicks="true" forever="true" kind="Observer" width="90" display="go">go</button>
5050
<slider x="5" step="1" y="71" max="10" width="250" display="colors" height="50" min="2" direction="Horizontal" default="5.0" variable="colors"></slider>

Sample Models/Biology/Evolution/Wolf Sheep Stride Inheritance.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ end
169169
; Copyright 2006 Uri Wilensky.
170170
; See Info tab for full copyright and license.]]></code>
171171
<widgets>
172-
<view x="280" wrappingAllowedX="true" y="7" frameRate="30.0" minPycor="-30" height="439" showTickCounter="true" patchSize="7.13115" fontSize="20" wrappingAllowedY="true" width="439" tickCounterLabel="ticks" maxPycor="30" updateMode="1" maxPxcor="30" minPxcor="-30"></view>
172+
<view x="280" wrappingAllowedX="true" y="7" frameRate="30.0" minPycor="-30" height="427" showTickCounter="true" patchSize="7.0" fontSize="20" wrappingAllowedY="true" width="427" tickCounterLabel="ticks" maxPycor="30" updateMode="1" maxPxcor="30" minPxcor="-30"></view>
173173
<note x="13" y="5" backgroundDark="0" fontSize="11" width="140" markdown="false" height="19" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Sheep settings</note>
174174
<slider x="5" step="0.1" y="76" max="1" width="250" display="initial-sheep-stride" height="50" min="0" direction="Horizontal" default="0.2" variable="initial-sheep-stride"></slider>
175175
<slider x="5" step="1" y="25" max="250" width="250" display="initial-number-sheep" height="50" min="0" direction="Horizontal" default="64.0" variable="initial-number-sheep"></slider>

Sample Models/Biology/Wolf Sheep Predation.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ end
153153
; Copyright 1997 Uri Wilensky.
154154
; See Info tab for full copyright and license.]]></code>
155155
<widgets>
156-
<view x="455" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-25" height="564" showTickCounter="true" patchSize="10.9804" fontSize="14" wrappingAllowedY="true" width="564" tickCounterLabel="ticks" maxPycor="25" updateMode="1" maxPxcor="25" minPxcor="-25"></view>
156+
<view x="455" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-25" height="561" showTickCounter="true" patchSize="11.0" fontSize="14" wrappingAllowedY="true" width="561" tickCounterLabel="ticks" maxPycor="25" updateMode="1" maxPxcor="25" minPxcor="-25"></view>
157157
<slider x="5" step="1.0" y="283" max="20.0" width="220" display="sheep-reproduce" height="50" min="1.0" direction="Horizontal" default="4.0" variable="sheep-reproduce" units="%"></slider>
158158
<monitor x="350" precision="0" y="498" height="60" fontSize="11" width="100" display="grass">count grass / 4</monitor>
159159
<slider x="5" step="1.0" y="230" max="50.0" width="220" display="sheep-gain-from-food" height="50" min="0.0" direction="Horizontal" default="4.0" variable="sheep-gain-from-food"></slider>

Sample Models/Chemistry & Physics/GasLab/GasLab Atmosphere.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ end
348348
; Copyright 1997 Uri Wilensky.
349349
; See Info tab for full copyright and license.]]></code>
350350
<widgets>
351-
<view x="437" wrappingAllowedX="true" y="21" frameRate="30.0" minPycor="0" height="353" showTickCounter="true" patchSize="4.31" fontSize="10" wrappingAllowedY="false" width="353" tickCounterLabel="ticks" maxPycor="80" updateMode="1" maxPxcor="40" minPxcor="-40"></view>
351+
<view x="437" wrappingAllowedX="true" y="21" frameRate="30.0" minPycor="0" height="364.5" showTickCounter="true" patchSize="4.5" fontSize="10" wrappingAllowedY="false" width="364.5" tickCounterLabel="ticks" maxPycor="80" updateMode="1" maxPxcor="40" minPxcor="-40"></view>
352352
<plot x="840" autoPlotX="true" yMax="500.0" autoPlotY="true" yAxis="energy" y="21" xMin="0.0" height="328" legend="false" xMax="160.0" yMin="0.0" width="239" xAxis="height" display="Energy vs. Height">
353353
<setup>set-plot-x-range 0 (max-pycor * 2)</setup>
354354
<update></update>

Sample Models/Chemistry & Physics/GasLab/GasLab Circular Particles.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ end
486486
; Copyright 2005 Uri Wilensky.
487487
; See Info tab for full copyright and license.]]></code>
488488
<widgets>
489-
<view x="330" wrappingAllowedX="false" y="7" frameRate="30.0" minPycor="-40" height="469" showTickCounter="true" patchSize="5.741" fontSize="20" wrappingAllowedY="false" width="469" tickCounterLabel="ticks" maxPycor="40" updateMode="1" maxPxcor="40" minPxcor="-40"></view>
489+
<view x="330" wrappingAllowedX="false" y="7" frameRate="30.0" minPycor="-40" height="445.5" showTickCounter="true" patchSize="5.5" fontSize="20" wrappingAllowedY="false" width="445.5" tickCounterLabel="ticks" maxPycor="40" updateMode="1" maxPxcor="40" minPxcor="-40"></view>
490490
<slider x="35" step="0.5" y="113" max="10" width="250" display="largest-particle-size" height="50" min="1" direction="Horizontal" default="6.0" variable="largest-particle-size"></slider>
491491
<plot x="810" autoPlotX="true" yMax="10.0" autoPlotY="true" y="7" xMin="0.0" height="205" legend="false" xMax="200.0" yMin="0.0" width="344" display="Energy Histogram">
492492
<setup>set-plot-x-range 0 ceiling (0.5 * (init-particle-speed * 2) * (init-particle-speed * 2) * max-particle-mass)

Sample Models/Chemistry & Physics/GasLab/GasLab Free Gas.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ end
263263
; Copyright 1997 Uri Wilensky.
264264
; See Info tab for full copyright and license.]]></code>
265265
<widgets>
266-
<view x="340" wrappingAllowedX="true" y="7" frameRate="30.0" minPycor="-40" height="394" showTickCounter="true" patchSize="4.815" fontSize="10" wrappingAllowedY="true" width="394" tickCounterLabel="ticks" maxPycor="40" updateMode="1" maxPxcor="40" minPxcor="-40"></view>
266+
<view x="340" wrappingAllowedX="true" y="7" frameRate="30.0" minPycor="-40" height="405" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="true" width="405" tickCounterLabel="ticks" maxPycor="40" updateMode="1" maxPxcor="40" minPxcor="-40"></view>
267267
<slider x="52" step="1" y="7" max="1000" width="250" display="number-of-particles" height="50" min="1" direction="Horizontal" default="100.0" variable="number-of-particles"></slider>
268268
<slider x="52" step="1" y="60" max="20" width="250" display="init-particle-speed" height="50" min="1" direction="Horizontal" default="10.0" variable="init-particle-speed"></slider>
269269
<slider x="52" step="1" y="115" max="20" width="250" display="particle-mass" height="50" min="1" direction="Horizontal" default="1.0" variable="particle-mass"></slider>

Sample Models/Chemistry & Physics/GasLab/GasLab Gas in a Box.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ end
327327
; Copyright 1997 Uri Wilensky.
328328
; See Info tab for full copyright and license.]]></code>
329329
<widgets>
330-
<view x="445" wrappingAllowedX="false" y="7" frameRate="30.0" minPycor="-40" height="459" showTickCounter="true" patchSize="5.62" fontSize="10" wrappingAllowedY="false" width="459" tickCounterLabel="ticks" maxPycor="40" updateMode="1" maxPxcor="40" minPxcor="-40"></view>
330+
<view x="445" wrappingAllowedX="false" y="7" frameRate="30.0" minPycor="-40" height="445.5" showTickCounter="true" patchSize="5.5" fontSize="10" wrappingAllowedY="false" width="445.5" tickCounterLabel="ticks" maxPycor="40" updateMode="1" maxPxcor="40" minPxcor="-40"></view>
331331
<monitor x="9" precision="0" y="415" height="60" fontSize="11" width="100" display="percent fast">percent-fast</monitor>
332332
<monitor x="228" precision="0" y="415" height="60" fontSize="11" width="100" display="percent slow">percent-slow</monitor>
333333
<monitor x="115" precision="0" y="415" height="60" fontSize="11" width="103" display="percent medium">percent-medium</monitor>

0 commit comments

Comments
 (0)