cppmodel 0.9.1__py3-none-win_amd64.whl → 0.9.4__py3-none-win_amd64.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.
- cppmodel/__init__.py +1 -1
- cppmodel/_native.py +0 -1
- cppmodel/_simulation.py +1 -14
- cppmodel/lib/cppmodel.dll +0 -0
- {cppmodel-0.9.1.dist-info → cppmodel-0.9.4.dist-info}/METADATA +1 -1
- cppmodel-0.9.4.dist-info/RECORD +14 -0
- cppmodel-0.9.1.dist-info/RECORD +0 -14
- {cppmodel-0.9.1.dist-info → cppmodel-0.9.4.dist-info}/WHEEL +0 -0
- {cppmodel-0.9.1.dist-info → cppmodel-0.9.4.dist-info}/licenses/LICENSE +0 -0
- {cppmodel-0.9.1.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/IXWebSocket-LICENSE.txt +0 -0
- {cppmodel-0.9.1.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/cpp-httplib-LICENSE.txt +0 -0
- {cppmodel-0.9.1.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/jwt-cpp-LICENSE.txt +0 -0
- {cppmodel-0.9.1.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/nlohmann-json-LICENSE.txt +0 -0
- {cppmodel-0.9.1.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/openssl-LICENSE.txt +0 -0
- {cppmodel-0.9.1.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/picojson-LICENSE.txt +0 -0
cppmodel/__init__.py
CHANGED
cppmodel/_native.py
CHANGED
|
@@ -42,7 +42,6 @@ _SIGNATURES = {
|
|
|
42
42
|
"cm_simulation_get_name": (c_int, [_handle, _out_text]),
|
|
43
43
|
"cm_simulation_set_timing": (c_int, [_handle, c_uint64, c_uint64]),
|
|
44
44
|
"cm_simulation_get_timing": (c_int, [_handle, _out_uint64, _out_uint64]),
|
|
45
|
-
"cm_simulation_set_run_offline": (c_int, [_handle, c_int]),
|
|
46
45
|
"cm_simulation_set_fingerprint_file": (c_int, [_handle, c_char_p]),
|
|
47
46
|
"cm_simulation_set_init_callback": (c_int, [_handle, CALLBACK, c_void_p]),
|
|
48
47
|
"cm_simulation_set_step_callback": (c_int, [_handle, CALLBACK, c_void_p]),
|
cppmodel/_simulation.py
CHANGED
|
@@ -205,7 +205,7 @@ class Simulation:
|
|
|
205
205
|
re-raised by run().
|
|
206
206
|
"""
|
|
207
207
|
|
|
208
|
-
def __init__(self, name, total_time_ms, step_ms, *,
|
|
208
|
+
def __init__(self, name, total_time_ms, step_ms, *, init=None, step=None, finalize=None):
|
|
209
209
|
handle = c_void_p()
|
|
210
210
|
_check(lib.cm_simulation_create(_encode(name), total_time_ms, step_ms, byref(handle)))
|
|
211
211
|
self._handle = handle
|
|
@@ -220,8 +220,6 @@ class Simulation:
|
|
|
220
220
|
_check(lib.cm_simulation_set_init_callback(handle, self._callbacks[0], None))
|
|
221
221
|
_check(lib.cm_simulation_set_step_callback(handle, self._callbacks[1], None))
|
|
222
222
|
_check(lib.cm_simulation_set_finalize_callback(handle, self._callbacks[2], None))
|
|
223
|
-
self._offline = False
|
|
224
|
-
self.offline = offline
|
|
225
223
|
self._fingerprint_file = None
|
|
226
224
|
default = self._default_fingerprint_file()
|
|
227
225
|
if default is not None and lib.cm_simulation_set_fingerprint_file(handle, _encode(default)) == Status.OK:
|
|
@@ -316,17 +314,6 @@ class Simulation:
|
|
|
316
314
|
def step_ms(self, value):
|
|
317
315
|
_check(lib.cm_simulation_set_timing(self._live(), self.total_time_ms, value))
|
|
318
316
|
|
|
319
|
-
@property
|
|
320
|
-
def offline(self):
|
|
321
|
-
"""When true, run() doesn't reach the workspace: nothing is fetched or submitted, and run()
|
|
322
|
-
then raises, because a run that skips the workspace verifies nothing."""
|
|
323
|
-
return self._offline
|
|
324
|
-
|
|
325
|
-
@offline.setter
|
|
326
|
-
def offline(self, value):
|
|
327
|
-
_check(lib.cm_simulation_set_run_offline(self._live(), 1 if value else 0))
|
|
328
|
-
self._offline = bool(value)
|
|
329
|
-
|
|
330
317
|
def _default_fingerprint_file(self):
|
|
331
318
|
# The simulation's code: the subclass's file, else the callbacks' file, else the main script.
|
|
332
319
|
candidates = [type(self)] if type(self) is not Simulation else []
|
cppmodel/lib/cppmodel.dll
CHANGED
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
cppmodel/__init__.py,sha256=7NzC0pGCgLmZcC4rhYaVlIq6XPmEb2uaI3rqZhvdQLY,594
|
|
2
|
+
cppmodel/_native.py,sha256=IcEIho-yjIZD0im4mqoQnZ_4JctQ60ph0YH9RQckSnw,4448
|
|
3
|
+
cppmodel/_simulation.py,sha256=QjHRk8QFN8exX39FicTYHwvQoXx86gHhLs1KGGRJpnA,14096
|
|
4
|
+
cppmodel/lib/cppmodel.dll,sha256=UTE6UKL4S3fWvA3pk9MSCXXs22_E5KoC-i3qPtfmLbQ,5137408
|
|
5
|
+
cppmodel-0.9.4.dist-info/METADATA,sha256=kCY_ORGm8H3yiq93qELeJc_KJTcuNMroOJMDb8JXB9k,5259
|
|
6
|
+
cppmodel-0.9.4.dist-info/WHEEL,sha256=A7YmR1UrJozxyeLCzQFwQUdR7CRUwkFKasEDmnrjVxY,94
|
|
7
|
+
cppmodel-0.9.4.dist-info/licenses/LICENSE,sha256=m9J9CSAmn7L5LSEbmwtNhVbRCJin6u75y91XhYRNlgc,382
|
|
8
|
+
cppmodel-0.9.4.dist-info/licenses/licenses/IXWebSocket-LICENSE.txt,sha256=UXG83c7ZNKO_V4s5wzDDm-NnYgvQgBHdK1K4_KGJluk,1535
|
|
9
|
+
cppmodel-0.9.4.dist-info/licenses/licenses/cpp-httplib-LICENSE.txt,sha256=u1Rurlkk2O6ELg5Wfm1TPFgkvevM9gX5mls0KQNOZpc,1097
|
|
10
|
+
cppmodel-0.9.4.dist-info/licenses/licenses/jwt-cpp-LICENSE.txt,sha256=3ImDIAl-oGB03QcNCSSBVdOFbSNlZsPpTf-rQZX8_tg,1096
|
|
11
|
+
cppmodel-0.9.4.dist-info/licenses/licenses/nlohmann-json-LICENSE.txt,sha256=uXFSgrLx2xNZqRm7OlQt1DYv2eOK5y1CE2frEavmLuw,1097
|
|
12
|
+
cppmodel-0.9.4.dist-info/licenses/licenses/openssl-LICENSE.txt,sha256=_Ce2ibwJLiJOv_Sjt5qH-YTENsmZgRZL4YwgvG77QWM,627
|
|
13
|
+
cppmodel-0.9.4.dist-info/licenses/licenses/picojson-LICENSE.txt,sha256=0xRrtuowFzr_-Xnez32EsLDlSvO83J_wVUI7C6h8ebE,1361
|
|
14
|
+
cppmodel-0.9.4.dist-info/RECORD,,
|
cppmodel-0.9.1.dist-info/RECORD
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
cppmodel/__init__.py,sha256=sdzkbBkf5mgD6GceS9LLGSreInvjFZq1BV5MzV4di9E,594
|
|
2
|
-
cppmodel/_native.py,sha256=qUAZuxYVprNMVT0YEekZ7poJlMZkNgP2gyF42Lu09sg,4512
|
|
3
|
-
cppmodel/_simulation.py,sha256=Ob2qiAES9vnSNNuX8iBB2YyDRTMlQGHCRIgb1yQSjEI,14590
|
|
4
|
-
cppmodel/lib/cppmodel.dll,sha256=a0nzze_BmiSPH1Mn-YR2-q_P7V-ejFK4hCEz5-_VfIk,5132288
|
|
5
|
-
cppmodel-0.9.1.dist-info/METADATA,sha256=gO-xXq34zbg0ykZzfg_TqSjNIJWu6PnKWCNdvATnNlQ,5259
|
|
6
|
-
cppmodel-0.9.1.dist-info/WHEEL,sha256=A7YmR1UrJozxyeLCzQFwQUdR7CRUwkFKasEDmnrjVxY,94
|
|
7
|
-
cppmodel-0.9.1.dist-info/licenses/LICENSE,sha256=m9J9CSAmn7L5LSEbmwtNhVbRCJin6u75y91XhYRNlgc,382
|
|
8
|
-
cppmodel-0.9.1.dist-info/licenses/licenses/IXWebSocket-LICENSE.txt,sha256=UXG83c7ZNKO_V4s5wzDDm-NnYgvQgBHdK1K4_KGJluk,1535
|
|
9
|
-
cppmodel-0.9.1.dist-info/licenses/licenses/cpp-httplib-LICENSE.txt,sha256=u1Rurlkk2O6ELg5Wfm1TPFgkvevM9gX5mls0KQNOZpc,1097
|
|
10
|
-
cppmodel-0.9.1.dist-info/licenses/licenses/jwt-cpp-LICENSE.txt,sha256=3ImDIAl-oGB03QcNCSSBVdOFbSNlZsPpTf-rQZX8_tg,1096
|
|
11
|
-
cppmodel-0.9.1.dist-info/licenses/licenses/nlohmann-json-LICENSE.txt,sha256=uXFSgrLx2xNZqRm7OlQt1DYv2eOK5y1CE2frEavmLuw,1097
|
|
12
|
-
cppmodel-0.9.1.dist-info/licenses/licenses/openssl-LICENSE.txt,sha256=_Ce2ibwJLiJOv_Sjt5qH-YTENsmZgRZL4YwgvG77QWM,627
|
|
13
|
-
cppmodel-0.9.1.dist-info/licenses/licenses/picojson-LICENSE.txt,sha256=0xRrtuowFzr_-Xnez32EsLDlSvO83J_wVUI7C6h8ebE,1361
|
|
14
|
-
cppmodel-0.9.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{cppmodel-0.9.1.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/IXWebSocket-LICENSE.txt
RENAMED
|
File without changes
|
{cppmodel-0.9.1.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/cpp-httplib-LICENSE.txt
RENAMED
|
File without changes
|
|
File without changes
|
{cppmodel-0.9.1.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/nlohmann-json-LICENSE.txt
RENAMED
|
File without changes
|
|
File without changes
|
{cppmodel-0.9.1.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/picojson-LICENSE.txt
RENAMED
|
File without changes
|