piegy 2.1.8__cp310-cp310-win32.whl → 2.1.12__cp310-cp310-win32.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:06:47",
7
+ "version": "2.1.12",
8
+ "built from": "local machine",
9
+ "build date": "2025-06-28 11:48:13",
10
10
  "python version": "3.10.11",
11
11
  "platform": "win32"
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,29 +1,29 @@
1
1
  piegy/__init__.py,sha256=rF5yoSworW16VW3zqWYTxzyMrZQowyT13yDkgIjXIgA,2174
2
- piegy/__version__.py,sha256=HvrCytFABttRcsFUVtfqnlgwTSD0kcKj5InsPROAoxc,1647
2
+ piegy/__version__.py,sha256=uHkI3_fIVtyHqj5G9u8YFW_qRlpuvrHUv7SnjF8FWhM,1731
3
3
  piegy/analysis.py,sha256=tJhJTSFJsK_Zr34s78Cy7Im1NtONctkdNmg0R0teTeU,8941
4
- piegy/build_info.py,sha256=oZ09qbwysU6pCna77Z0gHK0aEE27S48gZTj5ozJf6bc,291
4
+ piegy/build_info.py,sha256=AxZUEI17Ax5YBKzo5OGs_pY_YY4eRs7LVi2xc5xxil4,300
5
5
  piegy/data_tools.py,sha256=uYEoCYO7ZVtKBsNDgco7kERvBlOFFK7wpTuqcCwCBEU,3573
6
6
  piegy/figures.py,sha256=QAbCoIopa0FRkReXBG0ExFvG-wNevI8hK8Ar-Ph14II,18427
7
- piegy/find_C.py,sha256=WejlqnyDg_1MQYQsiaAnbmUNjC09--7peVOxdxnd20A,513
8
- piegy/simulation.py,sha256=c98akqy2fja61QwW7c3RFpxcSD0aeRzyiqnQ-TVcnc0,20544
7
+ piegy/find_C.py,sha256=aICD5igepRttt2UJalg-D7ziKmzE_hM8eNm9K9gpOaQ,513
8
+ piegy/simulation.py,sha256=CouSHHAHIAu0TlqmOr1joN_vkcueXDnEuQtxkQCL1cA,20548
9
9
  piegy/simulation_py.py,sha256=BC87ONd3-OG9e8ri_8EP83QagEPPp-dMJ5pJJTa1pcw,30319
10
10
  piegy/test_var.py,sha256=weIaC-3jL9A3tLa_kpqPVLR0NQHwzzhaMtP8P0sFlA4,24145
11
11
  piegy/videos.py,sha256=meG3kNCnmAsEc2LtLGk2VixQZ9Nx4dRYwK7DB17_LFk,10521
12
- piegy/C_core/Makefile,sha256=4EWFxgeCuecXy119zAV7lrdnv2JEdYNEvxIHf1Ztf9Q,2166
12
+ piegy/C_core/Makefile,sha256=zmz8o-XM6cqutVQ0odQk9eR8w56KK4snmn7dXAUqMEg,2199
13
13
  piegy/C_core/model.c,sha256=v4vOs7HGcyOpIKWQPoT8uqLaA4NRSkaUuShowlrbjeM,2962
14
14
  piegy/C_core/model.h,sha256=WijCKKxdHn4Zz_F5NDmCy9lBA5KonWuHR0kfUxcB5b0,1234
15
15
  piegy/C_core/patch.c,sha256=eMzYYgOYWuWnviko50wQC5m5qxn0on3T9r-HXf9NrV0,1075
16
16
  piegy/C_core/patch.h,sha256=EDuO7-0lgLmqvA7H1sCf0rlGkpUfJgbMreLImXfCqxo,1006
17
- piegy/C_core/piegyc.cp310-win32.pyd,sha256=D-9h2L6HAD4-HmBtpbTiASLhoI3ofujaxEf6n0VD4Wg,74801
17
+ piegy/C_core/piegyc.cp310-win32.pyd,sha256=Ws4TOHWkW42RTCgR-ehAj1SZSn5GF9q7ONd9YIhNhkY,74801
18
18
  piegy/C_core/piegyc.h,sha256=GDBAJriWzDWtwt8zq-2SecAdRcj-SD4BlDNP58lEjcg,1127
19
19
  piegy/C_core/runner.c,sha256=oadftcKjDNtdWMgmJ0-aMLZTodEXtv6FBmhpYIGLg-k,1637
20
- piegy/C_core/sim_funcs.c,sha256=trYhRWL_KfsK96Mx7_izWHGJjgSbI7vv6DCU9bYxtug,19391
20
+ piegy/C_core/sim_funcs.c,sha256=9hy9iNASWgnGKZCiUPT_QZq7AsKgKT2eYgpaXSNN170,19392
21
21
  piegy/C_core/sim_funcs.h,sha256=6EsxZeT4gqVdmU7DMfZ4PW7k_zANyS4nYJxKju_5rR4,15691
22
22
  piegy/tools/__init__.py,sha256=Zcr2OExiwY_Zeh_vVwDjbuHtTaI_eHOe8xwzgsVdja0,315
23
23
  piegy/tools/figure_tools.py,sha256=pz7Y2L1S1rVpbjwUwlsp1v1LRgi8IJq8ybLDn3woSNg,7213
24
24
  piegy/tools/file_tools.py,sha256=ThXsc2gBX8SbJWW07afolz1oHH0dJQfMvn9D3b-y7TE,659
25
- piegy-2.1.8.dist-info/licenses/LICENSE.txt,sha256=1ihCy5mwfvcRiquE82AHAMhd4iVUzDfgL7eG8_tPwQ0,1526
26
- piegy-2.1.8.dist-info/METADATA,sha256=15kSR6qbtl8Asy9JyQdz9YlrJa8ZAgBWTpj799NXk6U,5548
27
- piegy-2.1.8.dist-info/WHEEL,sha256=GWZF0cboiU4MhsG0baPl8rrtCaXFSLW25384gp3vddM,97
28
- piegy-2.1.8.dist-info/top_level.txt,sha256=k4QLYL8PqdqDuy95-4NZD_FVLqJDsmq67tpKkBn4vMw,6
29
- piegy-2.1.8.dist-info/RECORD,,
25
+ piegy-2.1.12.dist-info/licenses/LICENSE.txt,sha256=1ihCy5mwfvcRiquE82AHAMhd4iVUzDfgL7eG8_tPwQ0,1526
26
+ piegy-2.1.12.dist-info/METADATA,sha256=4dQpzbBc5rtzEn-03KfbNb58wNEDFIKCqgsQ0m7eyBc,5549
27
+ piegy-2.1.12.dist-info/WHEEL,sha256=GWZF0cboiU4MhsG0baPl8rrtCaXFSLW25384gp3vddM,97
28
+ piegy-2.1.12.dist-info/top_level.txt,sha256=k4QLYL8PqdqDuy95-4NZD_FVLqJDsmq67tpKkBn4vMw,6
29
+ piegy-2.1.12.dist-info/RECORD,,
File without changes