==========================
Added functionality (0)
-----------------------
Salabim now also supports rounded rectangles, which can result in more pleasing animations.
Therefore, the spec argument (tuple) of sim.AnimateRectangle now has an optional fifth item,
which is the radius of the corners of the rounded rectangle.
The same holds for the rectangle0 and rectangle1 (tuple) parameters of sim.Animate.
Note that if the radius is too big, the radius will be adjusted.
Changed functionality (0)
-------------------------
Under Pythonista, yieldless is False by default, now.
This can be useful for models which have no active components (and just env.run() statements).
Bug fix (0)
-----------
In version 23.3.12 the naming of components, queues, etc. was changed.
Unfortunately, the role of , and . at the end of the name were swapped.
From this version, the naming/sequence number system works again as intended and documented. So
for i in range(3):
car = Car('Audi.')
print(car.name(), car.sequence_number())
for i in range(3):
car = Car('BMW,')
print(car.name(), car.sequence_number())
will now (again) result in:
Audi.0 0
Audi.1 1
Audi.2 2
BMW.1 1
BMW.2 2
BMW.3 3
Bug fix (1)
-----------
Under PyPy yieldless did not work properly. Fixed.
Clarification (0)
-----------------
The salabim documentation states that models could run much faster under PyPy.
("We have found 6 to 7 times faster execution compared to CPython.")
In practice, the performance gain is much smaller. It is not uncommon that
models run even slower under PyPy!
Therefore, the paragraph about PyPy has been removed from the documentation.
(Inspired by a comment by Luc van den Brink)
Clarification (1)
-----------------
For the alternative UI the package PySimpleGUI is required.
Just recently, PySimpleGUI has changed its license to a more restrictive one.
And for commercial applications, charges apply.
If you want to use the real open-source version (which I recommend), please install
PySimpleGUI with
pip install PySimpleGUI==4.60.5
of course, this version is not maintained any more, but the package is rather stable.
I have also cloned the old PySimpleGUIfile repository to salabim, so you can just
copy pysimplegui.py (the only required file) from that repo to your model folder.
This information is also added to the documentation.