piegy 2.1.8__tar.gz → 2.1.10__tar.gz
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.
- {piegy-2.1.8/src/piegy.egg-info → piegy-2.1.10}/PKG-INFO +1 -1
- {piegy-2.1.8 → piegy-2.1.10}/pyproject.toml +1 -1
- {piegy-2.1.8 → piegy-2.1.10}/setup.py +1 -1
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/sim_funcs.c +1 -1
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/__version__.py +3 -2
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/find_C.py +1 -1
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/simulation.py +1 -1
- {piegy-2.1.8 → piegy-2.1.10/src/piegy.egg-info}/PKG-INFO +1 -1
- {piegy-2.1.8 → piegy-2.1.10}/LICENSE.txt +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/MANIFEST.in +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/README.md +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/setup.cfg +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/Makefile +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/model.c +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/model.h +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/patch.c +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/patch.h +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/piegyc.h +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/piegyc.so +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/runner.c +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/sim_funcs.h +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/__init__.py +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/analysis.py +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/build_info.py +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/data_tools.py +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/figures.py +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/simulation_py.py +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/test_var.py +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/tools/__init__.py +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/tools/figure_tools.py +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/tools/file_tools.py +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy/videos.py +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy.egg-info/SOURCES.txt +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy.egg-info/dependency_links.txt +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy.egg-info/requires.txt +0 -0
- {piegy-2.1.8 → piegy-2.1.10}/src/piegy.egg-info/top_level.txt +0 -0
@@ -506,7 +506,7 @@ void run(model_t* mod, char* message, size_t msg_len) {
|
|
506
506
|
size_t i = 0;
|
507
507
|
|
508
508
|
while (i < mod->sim_time) {
|
509
|
-
char curr_msg[
|
509
|
+
char curr_msg[100 + msg_len]; // message for current round
|
510
510
|
strcpy(curr_msg, message);
|
511
511
|
strcat(curr_msg, "round ");
|
512
512
|
snprintf(curr_msg + strlen(curr_msg), sizeof(curr_msg) - strlen(curr_msg), "%zu", i);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
__version__ = '2.1.
|
1
|
+
__version__ = '2.1.10'
|
2
2
|
|
3
3
|
'''
|
4
4
|
version history:
|
@@ -29,5 +29,6 @@ version history:
|
|
29
29
|
2.0.5: fix error in random number generator.
|
30
30
|
2.1.0: redo random number generator. Update package upload so that more compatible across platforms.
|
31
31
|
2.1.1: fix import bug for the C core.
|
32
|
-
2.1.2 ~ 2.1.
|
32
|
+
2.1.2 ~ 2.1.9: updating & fixing wheel.
|
33
|
+
2.1.10: fix print bug in run function.
|
33
34
|
'''
|
@@ -11,7 +11,7 @@ def find_C():
|
|
11
11
|
for file in C_list:
|
12
12
|
if file[-3:] == '.so':
|
13
13
|
return C_core_path + '/' + file
|
14
|
-
if file[-4:] == '.
|
14
|
+
if file[-4:] == '.pyd':
|
15
15
|
return C_core_path + '/' + file
|
16
16
|
|
17
17
|
raise FileNotFoundError('C computation core not found. You can either compile manully or use the Python core instead. Please see docs.')
|
@@ -408,7 +408,7 @@ def run(mod, message = ""):
|
|
408
408
|
if not mod.data_empty:
|
409
409
|
raise ValueError('mod has non-empty data.')
|
410
410
|
|
411
|
-
msg_len = len(message)
|
411
|
+
msg_len = len(message) * 2
|
412
412
|
msg_bytes = message.encode('utf-8')
|
413
413
|
msg_buffer = ctypes.create_string_buffer(msg_bytes, msg_len)
|
414
414
|
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|