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.
Files changed (36) hide show
  1. {piegy-2.1.8/src/piegy.egg-info → piegy-2.1.10}/PKG-INFO +1 -1
  2. {piegy-2.1.8 → piegy-2.1.10}/pyproject.toml +1 -1
  3. {piegy-2.1.8 → piegy-2.1.10}/setup.py +1 -1
  4. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/sim_funcs.c +1 -1
  5. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/__version__.py +3 -2
  6. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/find_C.py +1 -1
  7. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/simulation.py +1 -1
  8. {piegy-2.1.8 → piegy-2.1.10/src/piegy.egg-info}/PKG-INFO +1 -1
  9. {piegy-2.1.8 → piegy-2.1.10}/LICENSE.txt +0 -0
  10. {piegy-2.1.8 → piegy-2.1.10}/MANIFEST.in +0 -0
  11. {piegy-2.1.8 → piegy-2.1.10}/README.md +0 -0
  12. {piegy-2.1.8 → piegy-2.1.10}/setup.cfg +0 -0
  13. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/Makefile +0 -0
  14. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/model.c +0 -0
  15. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/model.h +0 -0
  16. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/patch.c +0 -0
  17. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/patch.h +0 -0
  18. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/piegyc.h +0 -0
  19. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/piegyc.so +0 -0
  20. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/runner.c +0 -0
  21. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/C_core/sim_funcs.h +0 -0
  22. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/__init__.py +0 -0
  23. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/analysis.py +0 -0
  24. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/build_info.py +0 -0
  25. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/data_tools.py +0 -0
  26. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/figures.py +0 -0
  27. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/simulation_py.py +0 -0
  28. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/test_var.py +0 -0
  29. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/tools/__init__.py +0 -0
  30. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/tools/figure_tools.py +0 -0
  31. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/tools/file_tools.py +0 -0
  32. {piegy-2.1.8 → piegy-2.1.10}/src/piegy/videos.py +0 -0
  33. {piegy-2.1.8 → piegy-2.1.10}/src/piegy.egg-info/SOURCES.txt +0 -0
  34. {piegy-2.1.8 → piegy-2.1.10}/src/piegy.egg-info/dependency_links.txt +0 -0
  35. {piegy-2.1.8 → piegy-2.1.10}/src/piegy.egg-info/requires.txt +0 -0
  36. {piegy-2.1.8 → piegy-2.1.10}/src/piegy.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: piegy
3
- Version: 2.1.8
3
+ Version: 2.1.10
4
4
  Summary: Payoff-Driven Stochastic Spatial Model for Evolutionary Game Theory
5
5
  Author-email: Chenning Xu <cxu7@caltech.edu>
6
6
  License: BSD 3-Clause License
@@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'
4
4
 
5
5
  [project]
6
6
  name = 'piegy'
7
- version = '2.1.8'
7
+ version = '2.1.10'
8
8
  description = 'Payoff-Driven Stochastic Spatial Model for Evolutionary Game Theory'
9
9
  readme = 'README.md'
10
10
  requires-python = '>=3.7'
@@ -79,7 +79,7 @@ setup(
79
79
  ext_modules=ext_modules,
80
80
  cmdclass={'build_ext': BuildSharedLib,
81
81
  'build_py': AddCompileInfo,},
82
- package_data={"piegy": ["C_core/piegyc.so", "build_info.py"]},
82
+ package_data={"piegy": ["build_info.py"]},
83
83
  include_package_data=True,
84
84
  )
85
85
 
@@ -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[20 + msg_len]; // message for current round
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.8'
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.8: updating wheel.
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:] == '.dll':
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: piegy
3
- Version: 2.1.8
3
+ Version: 2.1.10
4
4
  Summary: Payoff-Driven Stochastic Spatial Model for Evolutionary Game Theory
5
5
  Author-email: Chenning Xu <cxu7@caltech.edu>
6
6
  License: BSD 3-Clause License
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