piegy 2.1.8__cp310-cp310-macosx_11_0_arm64.whl → 2.1.12__cp310-cp310-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.
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
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.12'
2
2
 
3
3
  '''
4
4
  version history:
@@ -29,5 +29,7 @@ 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.
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.8",
8
- "built from": "wheel",
9
- "build date": "2025-06-28 08:04:10",
7
+ "version": "2.1.12",
8
+ "built from": "local machine",
9
+ "build date": "2025-06-28 11:50:04",
10
10
  "python version": "3.10.11",
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.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,30 +1,29 @@
1
- piegy/simulation.py,sha256=5hKtwQGXeMWdZLTSco83CYR5phP6jrOkNcrcfbe7-Z0,20035
2
- piegy/find_C.py,sha256=CoET9YkWqhvcHxdby6hVaZyPePBUm-fEWm2fo6ishYU,496
1
+ piegy-2.1.12.dist-info/RECORD,,
2
+ piegy-2.1.12.dist-info/WHEEL,sha256=11kMdE9gzbsaQG30fRcsAYxBLEVRsqJo098Y5iL60Xo,136
3
+ piegy-2.1.12.dist-info/top_level.txt,sha256=k4QLYL8PqdqDuy95-4NZD_FVLqJDsmq67tpKkBn4vMw,6
4
+ piegy-2.1.12.dist-info/METADATA,sha256=J3etgOKqcjudd7IhqPfhSUPzeW30uKbMRK0BO9IrLvs,5436
5
+ piegy-2.1.12.dist-info/licenses/LICENSE.txt,sha256=wfzEht_CxOcfGGmg3f3at4mWJb9rTBjA51mXLl_3O3g,1498
6
+ piegy/simulation.py,sha256=SZRIWHf_XtHtwmDNy04YxmzgmhXSSzJwMJRZQRg20Zk,20039
7
+ piegy/find_C.py,sha256=sbPQ2oTDCoBb00woDZ9ppRJstUmJwLguh7TOpQpvBfY,496
3
8
  piegy/analysis.py,sha256=2GBsBbi7LdstSEAM0-F2bfL2kHu3MElcrw8bxZ1x6LI,8719
4
9
  piegy/data_tools.py,sha256=auliVb88qKQmCX7LEDgKQvhBcwFTCXBEWKtjJ4_-rTU,3446
5
10
  piegy/__init__.py,sha256=VQcKA9Eg3hUJci2GV8fZjf9srZu9MPRc_LDVomaxowI,2117
6
- piegy/__version__.py,sha256=BpBy4N-qGYEU3VnA-wOBHaEl_T8Xd_djXPViwxORZZ0,1615
11
+ piegy/__version__.py,sha256=73UZA7FC7rGRp9D4-2NFskEWEc3_GZy3DmAkmU4bGR4,1697
7
12
  piegy/figures.py,sha256=GwixvD3Flaqg4feSvqr42lDR7CwZK0_2qmZg6N6_1uE,17936
8
13
  piegy/test_var.py,sha256=EfItIK-FEApJTAW8rs15kdMs5xlv-8Bx6CtfpSoi8ys,23562
9
14
  piegy/simulation_py.py,sha256=vVQbb76ui8Dw1msdk_GaNDNYVkMEUG-Q3lMsCx-8KNs,29503
10
- piegy/build_info.py,sha256=oDOnSuLJW_yci6us6eawQec-vOCJ3V46g8o_SARS0BA,280
15
+ piegy/build_info.py,sha256=eMdPbGNRpjL9IOe4m0EAAag6qH25bCZj7zTcazwX32o,289
11
16
  piegy/videos.py,sha256=QfSpOdwfaDsrQYRoiHmZ6gowzRQHom3m8kx1P65_8sM,10218
12
17
  piegy/C_core/patch.c,sha256=OVG4qyTpRs0hDa5eMRdPyNUmZk2G-FogBVq7Li381PQ,1032
13
18
  piegy/C_core/model.c,sha256=lAIQ2-r6GDBZNQUnxaj6EWiMLNI52-1vnYC6CPY8KyY,2854
14
19
  piegy/C_core/piegyc.h,sha256=INS97GRoOI01TQkzWHOa0KGKCBeg0L0pPFlb6Ei3faI,1078
15
20
  piegy/C_core/runner.c,sha256=WU2jfJUqwv0Xxp3g4cewVYsyDyvG4wkPFcu2VJ_sKNk,1576
16
- piegy/C_core/Makefile,sha256=kVNaxlGxxvcODyaEKQkDoXnU68NueKxksxqXSrTnPcM,2069
17
- piegy/C_core/sim_funcs.c,sha256=TJp-u_bEMtjiJySY4LrjnFRK_wpUeC-tHk4BURkec_4,18830
18
- piegy/C_core/piegyc.cpython-310-darwin.so,sha256=LM9JHvMbgNhgaurflfN9dUKb0TQTQlFbUKeOY2Xn_1s,67656
21
+ piegy/C_core/Makefile,sha256=Al8vtqJxrdieogVg7nDMvwaohvp0KWQ8h1QfcYnzuYE,2102
22
+ piegy/C_core/sim_funcs.c,sha256=qCUUvW5ZmGaH4oD25Ux63L2HOMesynxa1ji-NMruoUk,18831
23
+ piegy/C_core/piegyc.cpython-310-darwin.so,sha256=JmUIiLN2cPwMbQLiqqYnNVGQWmtW6yhQl0KYHWxl4TA,67656
19
24
  piegy/C_core/model.h,sha256=hmIqOwznkB8rhG-JeEUmn7JBDiWHkNrR9qfy1wN7X1E,1180
20
25
  piegy/C_core/patch.h,sha256=c3MXJweW4cogRnacaoY-aoUsf98jhJ_Hs-hp9AH6gwY,963
21
- piegy/C_core/piegyc.so,sha256=LM9JHvMbgNhgaurflfN9dUKb0TQTQlFbUKeOY2Xn_1s,67656
22
26
  piegy/C_core/sim_funcs.h,sha256=w53jaLVf49h_OxEr3xbMT3p_v6KTmduf0ORsoSqFhTI,15144
23
27
  piegy/tools/__init__.py,sha256=eYOl_HJHDonYexfrmKh3koOlxvtSo46vH6jHvCEEB4k,300
24
28
  piegy/tools/file_tools.py,sha256=ncxFWeHfIE-GYLQlOrahFlhBgqPyuY3R5_93fpQeCEs,630
25
29
  piegy/tools/figure_tools.py,sha256=54vJSJMReXidFnSPE_xFvedtgnJU3d55zQDPNBLGs98,6975
26
- piegy-2.1.8.dist-info/RECORD,,
27
- piegy-2.1.8.dist-info/WHEEL,sha256=11kMdE9gzbsaQG30fRcsAYxBLEVRsqJo098Y5iL60Xo,136
28
- piegy-2.1.8.dist-info/top_level.txt,sha256=k4QLYL8PqdqDuy95-4NZD_FVLqJDsmq67tpKkBn4vMw,6
29
- piegy-2.1.8.dist-info/METADATA,sha256=0etGMI932tEbHgoft3Nq9ikZpKwIK4peEB8meiKABX8,5435
30
- piegy-2.1.8.dist-info/licenses/LICENSE.txt,sha256=wfzEht_CxOcfGGmg3f3at4mWJb9rTBjA51mXLl_3O3g,1498
piegy/C_core/piegyc.so DELETED
Binary file
File without changes