salabim 24.0.11__tar.gz → 24.0.11.post0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {salabim-24.0.11 → salabim-24.0.11.post0}/PKG-INFO +1 -1
- {salabim-24.0.11 → salabim-24.0.11.post0}/pyproject.toml +1 -1
- {salabim-24.0.11 → salabim-24.0.11.post0}/salabim/salabim.py +7 -12
- {salabim-24.0.11 → salabim-24.0.11.post0}/salabim.egg-info/PKG-INFO +1 -1
- {salabim-24.0.11 → salabim-24.0.11.post0}/README.md +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/salabim/DejaVuSansMono.ttf +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/salabim/LICENSE.txt +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/salabim/__init__.py +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/salabim/calibri.ttf +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/salabim/mplus-1m-regular.ttf +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/salabim.egg-info/SOURCES.txt +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/salabim.egg-info/dependency_links.txt +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/salabim.egg-info/top_level.txt +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/setup.cfg +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/tests/test salabim.py +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/tests/test_cap_now.py +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/tests/test_componentgenerator.py +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/tests/test_datetime.py +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/tests/test_distributions.py +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/tests/test_misc.py +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/tests/test_monitor.py +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/tests/test_process.py +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/tests/test_queue.py +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/tests/test_state.py +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/tests/test_store.py +0 -0
- {salabim-24.0.11 → salabim-24.0.11.post0}/tests/test_timeunit.py +0 -0
@@ -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.11"
|
11
|
+
version = "24.0.11-0"
|
12
12
|
readme = "README.md"
|
13
13
|
requires-python = ">=3.7"
|
14
14
|
dependencies = [
|
@@ -60,7 +60,7 @@ PyDroid = sys.platform == "linux" and any("pydroid" in v for v in os.environ.val
|
|
60
60
|
PyPy = platform.python_implementation() == "PyPy"
|
61
61
|
Chromebook = "penguin" in platform.uname()
|
62
62
|
PythonInExcel = not ("__file__" in globals())
|
63
|
-
AnacondaCode = "
|
63
|
+
AnacondaCode = sys.platform=="emscripten"
|
64
64
|
|
65
65
|
|
66
66
|
def a_log(*args):
|
@@ -26942,6 +26942,7 @@ def reset() -> None:
|
|
26942
26942
|
g.tkinter_loaded = "?"
|
26943
26943
|
g.image_container_cache = {}
|
26944
26944
|
g._default_cap_now = False
|
26945
|
+
g._captured_stdout=[]
|
26945
26946
|
|
26946
26947
|
random_seed() # always start with seed 1234567
|
26947
26948
|
|
@@ -26999,15 +27000,11 @@ Environment.{name}.__doc__ = {name}.__doc__"""
|
|
26999
27000
|
exec(f"Environment.{name}={name}")
|
27000
27001
|
|
27001
27002
|
|
27002
|
-
_captured_store = []
|
27003
|
-
|
27004
|
-
|
27005
27003
|
def clear_captured_stdout():
|
27006
27004
|
"""
|
27007
27005
|
empties the captured stdout
|
27008
27006
|
"""
|
27009
|
-
|
27010
|
-
_captured_store.clear()
|
27007
|
+
g._captured_stdout.clear()
|
27011
27008
|
|
27012
27009
|
|
27013
27010
|
def captured_stdout_as_str() -> str:
|
@@ -27019,7 +27016,7 @@ def captured_stdout_as_str() -> str:
|
|
27019
27016
|
captured stdout : str
|
27020
27017
|
"""
|
27021
27018
|
|
27022
|
-
return "".join(
|
27019
|
+
return "".join(g._captured_stdout)
|
27023
27020
|
|
27024
27021
|
|
27025
27022
|
def captured_stdout_as_file(file: Union[str, Path, "file"], mode: str = None):
|
@@ -27097,16 +27094,14 @@ class capture_stdout:
|
|
27097
27094
|
sys.stdout = self.stdout
|
27098
27095
|
|
27099
27096
|
def write(self, data):
|
27100
|
-
|
27101
|
-
_captured_store.append(data)
|
27097
|
+
g._captured_stdout.append(data)
|
27102
27098
|
if self.include_print:
|
27103
27099
|
self.stdout.write(data)
|
27104
27100
|
|
27105
27101
|
def flush(self):
|
27106
|
-
global _captured_store
|
27107
27102
|
if self.include_print:
|
27108
27103
|
self.stdout.flush()
|
27109
|
-
|
27104
|
+
g._captured_stdout.append("\n")
|
27110
27105
|
|
27111
27106
|
|
27112
27107
|
class redirect_stdout:
|
@@ -27164,7 +27159,7 @@ class redirect_stdout:
|
|
27164
27159
|
self.close()
|
27165
27160
|
|
27166
27161
|
def write(self, data):
|
27167
|
-
global
|
27162
|
+
global _captured_stdout
|
27168
27163
|
self.file.write(data)
|
27169
27164
|
if self.include_print:
|
27170
27165
|
self.stdout.write(data)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|