salabim 23.3.2__tar.gz → 23.3.3__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {salabim-23.3.2 → salabim-23.3.3}/PKG-INFO +1 -1
- {salabim-23.3.2 → salabim-23.3.3}/salabim/changelog.txt +38 -0
- {salabim-23.3.2 → salabim-23.3.3}/salabim/salabim.py +41955 -41912
- {salabim-23.3.2 → salabim-23.3.3}/salabim.egg-info/PKG-INFO +1 -1
- {salabim-23.3.2 → salabim-23.3.3}/setup.py +1 -1
- {salabim-23.3.2 → salabim-23.3.3}/MANIFEST.in +0 -0
- {salabim-23.3.2 → salabim-23.3.3}/README.rst +0 -0
- {salabim-23.3.2 → salabim-23.3.3}/salabim/DejaVuSansMono.ttf +0 -0
- {salabim-23.3.2 → salabim-23.3.3}/salabim/README.rst +0 -0
- {salabim-23.3.2 → salabim-23.3.3}/salabim/__init__.py +0 -0
- {salabim-23.3.2 → salabim-23.3.3}/salabim/calibri.ttf +0 -0
- {salabim-23.3.2 → salabim-23.3.3}/salabim/mplus-1m-regular.ttf +0 -0
- {salabim-23.3.2 → salabim-23.3.3}/salabim.egg-info/SOURCES.txt +0 -0
- {salabim-23.3.2 → salabim-23.3.3}/salabim.egg-info/dependency_links.txt +0 -0
- {salabim-23.3.2 → salabim-23.3.3}/salabim.egg-info/top_level.txt +0 -0
- {salabim-23.3.2 → salabim-23.3.3}/setup.cfg +0 -0
@@ -1,5 +1,43 @@
|
|
1
1
|
salabim changelog
|
2
2
|
|
3
|
+
version 23.3.3 2023-07-23
|
4
|
+
==========================
|
5
|
+
Changed functionality (0)
|
6
|
+
-------------------------
|
7
|
+
In order to check whether a model that runs with sim.yieldless(False)
|
8
|
+
is not a yieldless model, salabim may under rare circumstances report:
|
9
|
+
ValueError: process must be a generator (contain yield statements.)
|
10
|
+
Maybe this a yieldless model. In that case:
|
11
|
+
- remove sim.yieldless(False)
|
12
|
+
If it is indeed a yield model, make this process method (and maybe others) into a generator, e.g.
|
13
|
+
by adding at the end:
|
14
|
+
return
|
15
|
+
yield # just to make this a generator
|
16
|
+
|
17
|
+
So when it is indeed a yieldless model, remove the sim.yieldless(False) statement.
|
18
|
+
If this is a model with yields, change the process method into a generator, e.g. by adding
|
19
|
+
yield self.hold(0) # added to make this process a generator
|
20
|
+
or
|
21
|
+
if False:
|
22
|
+
yield # added to make this process a generator
|
23
|
+
or (at the end)
|
24
|
+
return
|
25
|
+
yield # added to make this process a generator
|
26
|
+
|
27
|
+
Added functionality (0)
|
28
|
+
-----------------------
|
29
|
+
The method Store.to_store_requesters() returns a reference to the to requesters, like
|
30
|
+
Store.from_requesters() that was already in salabim.
|
31
|
+
These methods can be very useful for animating a store.
|
32
|
+
|
33
|
+
Bug fix (0)
|
34
|
+
-----------
|
35
|
+
AnimateGrid used 0 and env.width() for the x-range. And 0 and env.height() for the y-range.
|
36
|
+
This worked fine as long as screen coordinates were the same as user coordinates.
|
37
|
+
In order to properly work with user coordinates, the x-range should be env.x0() and env.x1()
|
38
|
+
and the y-range should be env.y0() and env.y1(). Fixed.
|
39
|
+
|
40
|
+
|
3
41
|
version 23.3.2 2023-07-10
|
4
42
|
==========================
|
5
43
|
Bug fix (0)
|