piegy 2.1.8__cp311-cp311-macosx_11_0_arm64.whl → 2.1.10__cp311-cp311-macosx_11_0_arm64.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.
Binary file
piegy/C_core/sim_funcs.c CHANGED
@@ -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);
piegy/__version__.py CHANGED
@@ -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
  '''
piegy/build_info.py CHANGED
@@ -4,9 +4,9 @@ Auto-generated at compile time.
4
4
  """
5
5
 
6
6
  build_info = {
7
- "version": "2.1.8",
7
+ "version": "2.1.10",
8
8
  "built from": "local machine",
9
- "build date": "2025-06-28 01:25:49",
9
+ "build date": "2025-06-28 03:02:51",
10
10
  "python version": "3.11.10",
11
11
  "platform": "darwin"
12
12
  }
piegy/find_C.py CHANGED
@@ -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.')
piegy/simulation.py CHANGED
@@ -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
@@ -1,11 +1,11 @@
1
1
  piegy/__init__.py,sha256=VQcKA9Eg3hUJci2GV8fZjf9srZu9MPRc_LDVomaxowI,2117
2
- piegy/__version__.py,sha256=BpBy4N-qGYEU3VnA-wOBHaEl_T8Xd_djXPViwxORZZ0,1615
2
+ piegy/__version__.py,sha256=y1kwbq1Wlh53SJE81na8fEJIWbf4XBsUkf92HPyUMXw,1664
3
3
  piegy/analysis.py,sha256=2GBsBbi7LdstSEAM0-F2bfL2kHu3MElcrw8bxZ1x6LI,8719
4
- piegy/build_info.py,sha256=PhQEiMUFJTpnuj6ReYqJGAy2ujueT1VK9Ijcl3NWjyI,288
4
+ piegy/build_info.py,sha256=ttcdIitoKxaYKS3Yi_vPZGFzBWFxxuCSWHtN-t6tCxg,289
5
5
  piegy/data_tools.py,sha256=auliVb88qKQmCX7LEDgKQvhBcwFTCXBEWKtjJ4_-rTU,3446
6
6
  piegy/figures.py,sha256=GwixvD3Flaqg4feSvqr42lDR7CwZK0_2qmZg6N6_1uE,17936
7
- piegy/find_C.py,sha256=CoET9YkWqhvcHxdby6hVaZyPePBUm-fEWm2fo6ishYU,496
8
- piegy/simulation.py,sha256=5hKtwQGXeMWdZLTSco83CYR5phP6jrOkNcrcfbe7-Z0,20035
7
+ piegy/find_C.py,sha256=sbPQ2oTDCoBb00woDZ9ppRJstUmJwLguh7TOpQpvBfY,496
8
+ piegy/simulation.py,sha256=SZRIWHf_XtHtwmDNy04YxmzgmhXSSzJwMJRZQRg20Zk,20039
9
9
  piegy/simulation_py.py,sha256=vVQbb76ui8Dw1msdk_GaNDNYVkMEUG-Q3lMsCx-8KNs,29503
10
10
  piegy/test_var.py,sha256=EfItIK-FEApJTAW8rs15kdMs5xlv-8Bx6CtfpSoi8ys,23562
11
11
  piegy/videos.py,sha256=QfSpOdwfaDsrQYRoiHmZ6gowzRQHom3m8kx1P65_8sM,10218
@@ -14,17 +14,17 @@ piegy/C_core/model.c,sha256=lAIQ2-r6GDBZNQUnxaj6EWiMLNI52-1vnYC6CPY8KyY,2854
14
14
  piegy/C_core/model.h,sha256=hmIqOwznkB8rhG-JeEUmn7JBDiWHkNrR9qfy1wN7X1E,1180
15
15
  piegy/C_core/patch.c,sha256=OVG4qyTpRs0hDa5eMRdPyNUmZk2G-FogBVq7Li381PQ,1032
16
16
  piegy/C_core/patch.h,sha256=c3MXJweW4cogRnacaoY-aoUsf98jhJ_Hs-hp9AH6gwY,963
17
- piegy/C_core/piegyc.cpython-311-darwin.so,sha256=X09xSi_scV7wr4wzE_BBjeN-a5R26cR2T3mnGCeo_4g,67656
17
+ piegy/C_core/piegyc.cpython-311-darwin.so,sha256=NHdWc1b6mH7JbCddKcD1W104PuMIPJKnandDM6VNeCk,67656
18
18
  piegy/C_core/piegyc.h,sha256=INS97GRoOI01TQkzWHOa0KGKCBeg0L0pPFlb6Ei3faI,1078
19
19
  piegy/C_core/piegyc.so,sha256=X09xSi_scV7wr4wzE_BBjeN-a5R26cR2T3mnGCeo_4g,67656
20
20
  piegy/C_core/runner.c,sha256=WU2jfJUqwv0Xxp3g4cewVYsyDyvG4wkPFcu2VJ_sKNk,1576
21
- piegy/C_core/sim_funcs.c,sha256=TJp-u_bEMtjiJySY4LrjnFRK_wpUeC-tHk4BURkec_4,18830
21
+ piegy/C_core/sim_funcs.c,sha256=qCUUvW5ZmGaH4oD25Ux63L2HOMesynxa1ji-NMruoUk,18831
22
22
  piegy/C_core/sim_funcs.h,sha256=w53jaLVf49h_OxEr3xbMT3p_v6KTmduf0ORsoSqFhTI,15144
23
23
  piegy/tools/__init__.py,sha256=eYOl_HJHDonYexfrmKh3koOlxvtSo46vH6jHvCEEB4k,300
24
24
  piegy/tools/figure_tools.py,sha256=54vJSJMReXidFnSPE_xFvedtgnJU3d55zQDPNBLGs98,6975
25
25
  piegy/tools/file_tools.py,sha256=ncxFWeHfIE-GYLQlOrahFlhBgqPyuY3R5_93fpQeCEs,630
26
- piegy-2.1.8.dist-info/licenses/LICENSE.txt,sha256=wfzEht_CxOcfGGmg3f3at4mWJb9rTBjA51mXLl_3O3g,1498
27
- piegy-2.1.8.dist-info/METADATA,sha256=0etGMI932tEbHgoft3Nq9ikZpKwIK4peEB8meiKABX8,5435
28
- piegy-2.1.8.dist-info/WHEEL,sha256=qxQkdhERtGxJzqnVOBnucx1aUmU2n3HmuzYdln_LyOw,109
29
- piegy-2.1.8.dist-info/top_level.txt,sha256=k4QLYL8PqdqDuy95-4NZD_FVLqJDsmq67tpKkBn4vMw,6
30
- piegy-2.1.8.dist-info/RECORD,,
26
+ piegy-2.1.10.dist-info/licenses/LICENSE.txt,sha256=wfzEht_CxOcfGGmg3f3at4mWJb9rTBjA51mXLl_3O3g,1498
27
+ piegy-2.1.10.dist-info/METADATA,sha256=hWf1NA_2vIS6iaeroh2DJNab-x8SRon1wJvu467BpTU,5436
28
+ piegy-2.1.10.dist-info/WHEEL,sha256=qxQkdhERtGxJzqnVOBnucx1aUmU2n3HmuzYdln_LyOw,109
29
+ piegy-2.1.10.dist-info/top_level.txt,sha256=k4QLYL8PqdqDuy95-4NZD_FVLqJDsmq67tpKkBn4vMw,6
30
+ piegy-2.1.10.dist-info/RECORD,,
File without changes