salabim 24.0.9__py3-none-any.whl → 24.0.9.post0__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 CHANGED
@@ -7,7 +7,7 @@
7
7
  #
8
8
  # see www.salabim.org for more information, the documentation and license information
9
9
 
10
- __version__ = "24.0.9"
10
+ __version__ = "24.0.9"
11
11
 
12
12
  import heapq
13
13
  import random
@@ -3472,6 +3472,9 @@ class DynamicClass:
3472
3472
  if callable(c):
3473
3473
  if inspect.isfunction(c):
3474
3474
  nargs = c.__code__.co_argcount
3475
+ if c.__defaults__ is not None:
3476
+ c.__defaults__ = tuple(self if x == object else x for x in c.__defaults__) # indicate that object refers to animation object itself
3477
+ nargs -= len(c.__defaults__)
3475
3478
  if nargs == 0:
3476
3479
  return c()
3477
3480
  if nargs == 1:
@@ -14101,7 +14104,7 @@ class Environment:
14101
14104
 
14102
14105
  also the legend for line numbers will be printed
14103
14106
 
14104
- not that the header is only printed if trace=True
14107
+ note that the header is only printed if trace=True
14105
14108
  """
14106
14109
  len_s1 = len(self.time_to_str(0))
14107
14110
  self.print_trace((len_s1 - 4) * " " + "time", "current component", "action", "information", "" if PythonInExcel else "line#")
@@ -14849,7 +14852,7 @@ class Animate2dBase(DynamicClass):
14849
14852
 
14850
14853
  self.env = g.default_env if env is None else env
14851
14854
  self.sequence = self.env.serialize()
14852
- self.arg = self if arg is None else arg
14855
+ self.arg = self if arg in (None, object) else arg
14853
14856
  self.over3d = _default_over3d if over3d is None else over3d
14854
14857
  self.screen_coordinates = screen_coordinates
14855
14858
  self.attached_to = attached_to
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: salabim
3
- Version: 24.0.9
3
+ Version: 24.0.9.post0
4
4
  Summary: salabim - discrete event simulation in Python
5
5
  Author-email: Ruud van der Ham <rt.van.der.ham@gmail.com>
6
6
  Project-URL: Homepage, https://salabim.org
@@ -46,11 +46,11 @@ In contrast to some other Python DES packages, salabim does not require the use
46
46
  ### Features and documentation
47
47
 
48
48
  - Cross-platform support: salabim runs on Windows, macOS, Linux, iOS/iPadOS (Pythonista), and can even be used with "Python In Excel".
49
- - Comprehensive documentation: Visit [www.salabim.org/manual](www.salabim.org/manual) for detailed documentation.
49
+ - Comprehensive documentation: Visit https://www.salabim.org/manual for detailed documentation.
50
50
 
51
51
  ### Resources
52
52
 
53
- The salabim package can be found on GitHub: www.github.com/salabim/salabim
53
+ The salabim package can be found on GitHub: https://www.github.com/salabim/salabim
54
54
 
55
55
  And on PyPI: https://pypi.org/project/salabim/
56
56
 
@@ -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=q-JgqFxQnIoPg87Ajl1gHGVIFgOurphTsFi1pTSIBeE,1096452
7
+ salabim-24.0.9.post0.dist-info/METADATA,sha256=UZ5-iS_aUBGMa3841kRvFZo0xiuNPXrFzSyjH4zoiHY,3445
8
+ salabim-24.0.9.post0.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
9
+ salabim-24.0.9.post0.dist-info/top_level.txt,sha256=UE6zVlbi3F6T5ma1a_5TrojMaF21GYKDt9svvm0U4cQ,8
10
+ salabim-24.0.9.post0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.1.1)
2
+ Generator: setuptools (70.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -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=QCmOEMNNgJ_TSkFMZhzXLQrVWL3VajLzgoDF5joM6dk,1096190
7
- salabim-24.0.9.dist-info/METADATA,sha256=1x4DIhVpOpk3qkAPccvsgezV3xXVFbhFf-eOajz2rsc,3449
8
- salabim-24.0.9.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
9
- salabim-24.0.9.dist-info/top_level.txt,sha256=UE6zVlbi3F6T5ma1a_5TrojMaF21GYKDt9svvm0U4cQ,8
10
- salabim-24.0.9.dist-info/RECORD,,