salabim 24.0.11.post1__py3-none-any.whl → 24.0.12__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- salabim/salabim.py +14 -10
- {salabim-24.0.11.post1.dist-info → salabim-24.0.12.dist-info}/METADATA +1 -1
- salabim-24.0.12.dist-info/RECORD +10 -0
- salabim-24.0.11.post1.dist-info/RECORD +0 -10
- {salabim-24.0.11.post1.dist-info → salabim-24.0.12.dist-info}/WHEEL +0 -0
- {salabim-24.0.11.post1.dist-info → salabim-24.0.12.dist-info}/top_level.txt +0 -0
salabim/salabim.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
# _ _ _ ____ _ _ ___ _
|
2
|
-
# ___ __ _ | | __ _ | |__ (_) _ __ ___ |___ \ | || | / _ \ /
|
3
|
-
# / __| / _` || | / _` || '_ \ | || '_ ` _ \ __) || || |_ | | | | |
|
4
|
-
# \__ \| (_| || || (_| || |_) || || | | | | | / __/ |__ _| _ | |_| | _ |
|
5
|
-
# |___/ \__,_||_| \__,_||_.__/ |_||_| |_| |_| |_____| |_| (_) \___/ (_)|_||
|
1
|
+
# _ _ _ ____ _ _ ___ _ ____
|
2
|
+
# ___ __ _ | | __ _ | |__ (_) _ __ ___ |___ \ | || | / _ \ / ||___ \
|
3
|
+
# / __| / _` || | / _` || '_ \ | || '_ ` _ \ __) || || |_ | | | | | | __) |
|
4
|
+
# \__ \| (_| || || (_| || |_) || || | | | | | / __/ |__ _| _ | |_| | _ | | / __/
|
5
|
+
# |___/ \__,_||_| \__,_||_.__/ |_||_| |_| |_| |_____| |_| (_) \___/ (_)|_||_____|
|
6
6
|
# discrete event simulation
|
7
7
|
#
|
8
8
|
# see www.salabim.org for more information, the documentation and license information
|
9
9
|
|
10
|
-
__version__ = "24.0.
|
10
|
+
__version__ = "24.0.12"
|
11
11
|
|
12
12
|
import heapq
|
13
13
|
import random
|
@@ -5716,15 +5716,19 @@ class Queue:
|
|
5716
5716
|
|
5717
5717
|
|
5718
5718
|
class Store(Queue):
|
5719
|
-
def __init__(self, name: str = None, capacity:
|
5720
|
-
super().__init__(name=name, capacity=capacity, env=env, *args, **kwargs)
|
5719
|
+
def __init__(self, name: str = None, monitor: Any = True, fill: Iterable = None, capacity: float = inf, env: "Environment" = None, *args, **kwargs) -> None:
|
5720
|
+
super().__init__(name=name, monitor=monitor,fill=None,capacity=capacity, env=env, *args, **kwargs)
|
5721
|
+
|
5721
5722
|
with self.env.suppress_trace():
|
5722
5723
|
self._to_store_requesters = Queue(f"{name}.to_store_requesters", env=env)
|
5723
5724
|
self._to_store_requesters._isinternal = True
|
5724
5725
|
self._from_store_requesters = Queue(f"{name}.from_store_requesters", env=env)
|
5725
5726
|
self._from_store_requesters._isinternal = True
|
5726
5727
|
|
5727
|
-
|
5728
|
+
if fill is not None: # this cannot be done by Queue.__init__ as the requesters are not defined at that time
|
5729
|
+
with self.env.suppress_trace():
|
5730
|
+
for c in fill:
|
5731
|
+
c.enter(self)
|
5728
5732
|
|
5729
5733
|
def set_capacity(self, cap: float) -> None:
|
5730
5734
|
"""
|
@@ -26798,7 +26802,7 @@ class ImageContainer:
|
|
26798
26802
|
if not (0 <= t_from < t_to):
|
26799
26803
|
raise ValueError(f"animation_from={t_from} not with 0 and animation_to={t_to}")
|
26800
26804
|
if t_to > self._duration:
|
26801
|
-
raise ValueError(f"animation_to={t_to} > duration={
|
26805
|
+
raise ValueError(f"animation_to={t_to} > duration={self._duration}")
|
26802
26806
|
if pingpong:
|
26803
26807
|
interval = 2 * (t_to - t_from)
|
26804
26808
|
else:
|
@@ -0,0 +1,10 @@
|
|
1
|
+
salabim/DejaVuSansMono.ttf,sha256=Z_oIXp5yp1Zaw2y2p3vaxwHhjHpG0MFbmwhxSh4aIEI,335068
|
2
|
+
salabim/LICENSE.txt,sha256=qHlBa-POyexatCxDTjSKMlYtkBFQDn9lu-YV_1L6V0U,1106
|
3
|
+
salabim/__init__.py,sha256=r7qPLvlmX0dkZDyjuTo8Jo3ex3sD1L4pmK6K5ib9vyw,56
|
4
|
+
salabim/calibri.ttf,sha256=RWpf8Uo31RfvGGNaSt9-2sXSuN87AVE_NFMRsV3LhBk,1330156
|
5
|
+
salabim/mplus-1m-regular.ttf,sha256=EuFHr90BJjuAn_r5MleJFN-WfkeWJ4tf7DweI5zr8tU,289812
|
6
|
+
salabim/salabim.py,sha256=i5fPqlJSk3PRWFFZ7Z6RVsIWRI0EwQIeaN99fu5mCV0,1097596
|
7
|
+
salabim-24.0.12.dist-info/METADATA,sha256=PlkVJ2Qk6CFySH31iSJDmGZQ2Yrzolam1TIIuwqQN3A,3450
|
8
|
+
salabim-24.0.12.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
|
9
|
+
salabim-24.0.12.dist-info/top_level.txt,sha256=UE6zVlbi3F6T5ma1a_5TrojMaF21GYKDt9svvm0U4cQ,8
|
10
|
+
salabim-24.0.12.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
salabim/DejaVuSansMono.ttf,sha256=Z_oIXp5yp1Zaw2y2p3vaxwHhjHpG0MFbmwhxSh4aIEI,335068
|
2
|
-
salabim/LICENSE.txt,sha256=qHlBa-POyexatCxDTjSKMlYtkBFQDn9lu-YV_1L6V0U,1106
|
3
|
-
salabim/__init__.py,sha256=r7qPLvlmX0dkZDyjuTo8Jo3ex3sD1L4pmK6K5ib9vyw,56
|
4
|
-
salabim/calibri.ttf,sha256=RWpf8Uo31RfvGGNaSt9-2sXSuN87AVE_NFMRsV3LhBk,1330156
|
5
|
-
salabim/mplus-1m-regular.ttf,sha256=EuFHr90BJjuAn_r5MleJFN-WfkeWJ4tf7DweI5zr8tU,289812
|
6
|
-
salabim/salabim.py,sha256=8dANioKbD1covX06fZohLeNttQVbalrN6q8eODdZYTU,1097286
|
7
|
-
salabim-24.0.11.post1.dist-info/METADATA,sha256=g39m6E1GfEa8lmL3Ji7vWbz2MpGvYClI1oedRWT2zQc,3456
|
8
|
-
salabim-24.0.11.post1.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
|
9
|
-
salabim-24.0.11.post1.dist-info/top_level.txt,sha256=UE6zVlbi3F6T5ma1a_5TrojMaF21GYKDt9svvm0U4cQ,8
|
10
|
-
salabim-24.0.11.post1.dist-info/RECORD,,
|
File without changes
|
File without changes
|