salabim 24.0.4.post0__tar.gz → 24.0.4.post1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/PKG-INFO +1 -1
  2. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/pyproject.toml +1 -1
  3. salabim-24.0.4.post1/salabim/__init__.py +2 -0
  4. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/salabim/salabim.py +1 -0
  5. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/salabim.egg-info/PKG-INFO +1 -1
  6. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/salabim.egg-info/SOURCES.txt +1 -0
  7. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/tests/test_monitor.py +7 -7
  8. salabim-24.0.4.post1/tests/test_salabim.py +9 -0
  9. salabim-24.0.4.post0/tests/test_salabim.py +0 -5
  10. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/README.md +0 -0
  11. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/salabim/DejaVuSansMono.ttf +0 -0
  12. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/salabim/LICENSE.txt +0 -0
  13. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/salabim/calibri.ttf +0 -0
  14. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/salabim/changelog.txt +0 -0
  15. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/salabim/mplus-1m-regular.ttf +0 -0
  16. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/salabim.egg-info/dependency_links.txt +0 -0
  17. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/salabim.egg-info/top_level.txt +0 -0
  18. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/setup.cfg +0 -0
  19. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/tests/test_cap_now.py +0 -0
  20. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/tests/test_componentgenerator.py +0 -0
  21. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/tests/test_datetime.py +0 -0
  22. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/tests/test_distributions.py +0 -0
  23. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/tests/test_misc.py +0 -0
  24. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/tests/test_process.py +0 -0
  25. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/tests/test_queue.py +0 -0
  26. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/tests/test_state.py +0 -0
  27. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/tests/test_store.py +0 -0
  28. {salabim-24.0.4.post0 → salabim-24.0.4.post1}/tests/test_timeunit.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: salabim
3
- Version: 24.0.4.post0
3
+ Version: 24.0.4.post1
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
@@ -8,7 +8,7 @@ authors = [
8
8
  {name = "Ruud van der Ham", email = "rt.van.der.ham@gmail.com"}
9
9
  ]
10
10
  description = "salabim - discrete event simulation in Python"
11
- version = "24.0.4-0"
11
+ version = "24.0.4-1"
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.7"
14
14
  dependencies = [
@@ -0,0 +1,2 @@
1
+ from .salabim import *
2
+ from .salabim import __version__
@@ -27086,6 +27086,7 @@ reset()
27086
27086
  set_environment_aliases()
27087
27087
 
27088
27088
  if __name__ == "__main__":
27089
+ sys.path.insert(0,str(Path.cwd()/"misc"))
27089
27090
  try:
27090
27091
  import salabim_exp
27091
27092
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: salabim
3
- Version: 24.0.4.post0
3
+ Version: 24.0.4.post1
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
@@ -2,6 +2,7 @@ README.md
2
2
  pyproject.toml
3
3
  salabim/DejaVuSansMono.ttf
4
4
  salabim/LICENSE.txt
5
+ salabim/__init__.py
5
6
  salabim/calibri.ttf
6
7
  salabim/changelog.txt
7
8
  salabim/mplus-1m-regular.ttf
@@ -397,13 +397,13 @@ def test_level_values():
397
397
  class Interrupter(sim.Component):
398
398
  def process(self):
399
399
  self.hold(6)
400
- x0.interrupt()
401
- x1.interrupt()
402
- x2.interrupt()
400
+ for x in (x0,x1,x2):
401
+ if x.isscheduled():
402
+ x.interrupt()
403
403
  self.hold(4)
404
- x0.resume()
405
- x1.resume()
406
- x2.resume()
404
+ for x in (x0,x1,x2):
405
+ if x.isinterrupted():
406
+ x.resume()
407
407
 
408
408
  def status_map(status):
409
409
  return sim.statuses().index(status)
@@ -425,7 +425,7 @@ def test_level_values():
425
425
 
426
426
  env.run(till=50)
427
427
 
428
- assert x1.status.value_duration("requesting") == pytest.approx(10.1)
428
+ assert x1.status.value_duration("requesting") == pytest.approx(14.1)
429
429
 
430
430
  assert x0.mode.xt(force_numeric=None) == (["abc", "ghi", "jkl", "jkl"], array("d", [0.0, 4.3, 18.4, 50.0]))
431
431
  assert x0.status.xt(force_numeric=None) == (
@@ -0,0 +1,9 @@
1
+ import pytest
2
+ import os
3
+ import sys
4
+ from pathlib import Path
5
+
6
+ if __name__ == "__main__":
7
+ sys.path.insert(0,str(Path.cwd()/"salabim"))
8
+ os.chdir("tests")
9
+ pytest.main(["-vv", "-s"])
@@ -1,5 +0,0 @@
1
- import pytest
2
-
3
- if __name__ == "__main__":
4
-
5
- pytest.main(["-vv", "-s"])
File without changes
File without changes