piegy 2.1.9__cp310-cp310-musllinux_1_2_x86_64.whl → 2.1.12__cp310-cp310-musllinux_1_2_x86_64.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.
piegy/C_core/Makefile CHANGED
@@ -10,11 +10,11 @@ LDFLAGS_COMMON = -flto
10
10
 
11
11
  ## Flags for Debugging ##
12
12
  # slower, debuggable with lldb, with Address Sanitizer. Don't use in python
13
- #CFLAGS = -g -std=c99 -Wall -Wextra -MMD -MP -fsanitize=address,undefined -fno-omit-frame-pointer
14
- #LDFLAGS = -fsanitize=address,undefined
13
+ #CFLAGS_COMMON = -g -std=c99 -Wall -Wextra -MMD -MP -fsanitize=address,undefined -fno-omit-frame-pointer
14
+ #LDFLAGS_COMMON = -fsanitize=address,undefined
15
15
  # slower, regular build, allow lldb
16
- #CFLAGS = -g -std=c99 -Wall -Wextra -MMD -MP
17
- #LDFLAGS =
16
+ #CFLAGS_COMMON = -g -std=c99 -Wall -Wextra -MMD -MP
17
+ #LDFLAGS_COMMON =
18
18
 
19
19
 
20
20
  #### OS specific ####
@@ -54,7 +54,7 @@ DEPS = $(OBJ:.o=.d) $(RUNNER_DEPS)
54
54
  TEST = runner
55
55
  ifeq '$(findstring ;,$(PATH))' ';'
56
56
  # windows
57
- SHARED_LIB = piegyc.dll
57
+ SHARED_LIB = piegyc.pyd
58
58
  else
59
59
  SHARED_LIB = piegyc.so
60
60
  endif
@@ -83,7 +83,7 @@ $(SHARED_LIB): $(OBJ)
83
83
 
84
84
  # Clean build files
85
85
  clean:
86
- rm -f $(OBJ) $(RUNNER_OBJ) $(TEST) $(SHARED_LIB) $(DEPS)
86
+ rm -f $(OBJ) $(RUNNER_OBJ) $(TEST) $(SHARED_LIB) $(DEPS) *.so
87
87
 
88
88
  # Rebuild target: clean then all
89
89
  re: clean all
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.9'
1
+ __version__ = '2.1.12'
2
2
 
3
3
  '''
4
4
  version history:
@@ -30,4 +30,6 @@ version history:
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
32
  2.1.2 ~ 2.1.9: updating & fixing wheel.
33
+ 2.1.10: fix print bug in run function.
34
+ 2.1.11: fix .so duplicate error.
33
35
  '''
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.9",
7
+ "version": "2.1.12",
8
8
  "built from": "local machine",
9
- "build date": "2025-06-28 09:02:37",
9
+ "build date": "2025-06-28 11:47:08",
10
10
  "python version": "3.10.17",
11
11
  "platform": "linux"
12
12
  }
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.9
3
+ Version: 2.1.12
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,29 +1,29 @@
1
1
  piegy/__init__.py,sha256=VQcKA9Eg3hUJci2GV8fZjf9srZu9MPRc_LDVomaxowI,2117
2
- piegy/__version__.py,sha256=LkXXuVOkNPwLDSdwo_RFSdJR9SxYMQMqy1subSveOMo,1624
2
+ piegy/__version__.py,sha256=73UZA7FC7rGRp9D4-2NFskEWEc3_GZy3DmAkmU4bGR4,1697
3
3
  piegy/analysis.py,sha256=2GBsBbi7LdstSEAM0-F2bfL2kHu3MElcrw8bxZ1x6LI,8719
4
- piegy/build_info.py,sha256=fQq8oZcr4RfyEK3Ge63JOmjTfpa3cnWA5Knb_ZlNvg4,287
4
+ piegy/build_info.py,sha256=QA1EmURtczZ5Mz6a03a1702YNAkTwZECeW-BZUOTZOI,288
5
5
  piegy/data_tools.py,sha256=auliVb88qKQmCX7LEDgKQvhBcwFTCXBEWKtjJ4_-rTU,3446
6
6
  piegy/figures.py,sha256=GwixvD3Flaqg4feSvqr42lDR7CwZK0_2qmZg6N6_1uE,17936
7
7
  piegy/find_C.py,sha256=sbPQ2oTDCoBb00woDZ9ppRJstUmJwLguh7TOpQpvBfY,496
8
- piegy/simulation.py,sha256=5hKtwQGXeMWdZLTSco83CYR5phP6jrOkNcrcfbe7-Z0,20035
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
12
- piegy/C_core/Makefile,sha256=kVNaxlGxxvcODyaEKQkDoXnU68NueKxksxqXSrTnPcM,2069
12
+ piegy/C_core/Makefile,sha256=Al8vtqJxrdieogVg7nDMvwaohvp0KWQ8h1QfcYnzuYE,2102
13
13
  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-310-x86_64-linux-gnu.so,sha256=4T4JW5hz8C1IKnjdhElqR_dXzPqh7DZ8RJJU8SQQ2aE,37664
17
+ piegy/C_core/piegyc.cpython-310-x86_64-linux-gnu.so,sha256=BoWwhlonOsRSIdDhZ2qtwix3mVpXM2kJEEEdnfx6voM,37664
18
18
  piegy/C_core/piegyc.h,sha256=INS97GRoOI01TQkzWHOa0KGKCBeg0L0pPFlb6Ei3faI,1078
19
19
  piegy/C_core/runner.c,sha256=WU2jfJUqwv0Xxp3g4cewVYsyDyvG4wkPFcu2VJ_sKNk,1576
20
- piegy/C_core/sim_funcs.c,sha256=TJp-u_bEMtjiJySY4LrjnFRK_wpUeC-tHk4BURkec_4,18830
20
+ piegy/C_core/sim_funcs.c,sha256=qCUUvW5ZmGaH4oD25Ux63L2HOMesynxa1ji-NMruoUk,18831
21
21
  piegy/C_core/sim_funcs.h,sha256=w53jaLVf49h_OxEr3xbMT3p_v6KTmduf0ORsoSqFhTI,15144
22
22
  piegy/tools/__init__.py,sha256=eYOl_HJHDonYexfrmKh3koOlxvtSo46vH6jHvCEEB4k,300
23
23
  piegy/tools/figure_tools.py,sha256=54vJSJMReXidFnSPE_xFvedtgnJU3d55zQDPNBLGs98,6975
24
24
  piegy/tools/file_tools.py,sha256=ncxFWeHfIE-GYLQlOrahFlhBgqPyuY3R5_93fpQeCEs,630
25
- piegy-2.1.9.dist-info/METADATA,sha256=nOg1krDYxs1lGiESkE4OJD1SMfQAX1Pb12Tm4be9qZw,5435
26
- piegy-2.1.9.dist-info/WHEEL,sha256=YJPq7zroHSsdctrb_KymZ4ss41PkmaA9SD9TZzqKSX8,112
27
- piegy-2.1.9.dist-info/top_level.txt,sha256=k4QLYL8PqdqDuy95-4NZD_FVLqJDsmq67tpKkBn4vMw,6
28
- piegy-2.1.9.dist-info/RECORD,,
29
- piegy-2.1.9.dist-info/licenses/LICENSE.txt,sha256=wfzEht_CxOcfGGmg3f3at4mWJb9rTBjA51mXLl_3O3g,1498
25
+ piegy-2.1.12.dist-info/METADATA,sha256=J3etgOKqcjudd7IhqPfhSUPzeW30uKbMRK0BO9IrLvs,5436
26
+ piegy-2.1.12.dist-info/WHEEL,sha256=YJPq7zroHSsdctrb_KymZ4ss41PkmaA9SD9TZzqKSX8,112
27
+ piegy-2.1.12.dist-info/top_level.txt,sha256=k4QLYL8PqdqDuy95-4NZD_FVLqJDsmq67tpKkBn4vMw,6
28
+ piegy-2.1.12.dist-info/RECORD,,
29
+ piegy-2.1.12.dist-info/licenses/LICENSE.txt,sha256=wfzEht_CxOcfGGmg3f3at4mWJb9rTBjA51mXLl_3O3g,1498
File without changes