cppmodel 0.9.0__py3-none-win_arm64.whl → 0.9.4__py3-none-win_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.
- cppmodel/__init__.py +1 -1
- cppmodel/_native.py +0 -1
- cppmodel/_simulation.py +1 -13
- cppmodel/lib/cppmodel.dll +0 -0
- {cppmodel-0.9.0.dist-info → cppmodel-0.9.4.dist-info}/METADATA +5 -7
- cppmodel-0.9.4.dist-info/RECORD +14 -0
- cppmodel-0.9.0.dist-info/RECORD +0 -14
- {cppmodel-0.9.0.dist-info → cppmodel-0.9.4.dist-info}/WHEEL +0 -0
- {cppmodel-0.9.0.dist-info → cppmodel-0.9.4.dist-info}/licenses/LICENSE +0 -0
- {cppmodel-0.9.0.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/IXWebSocket-LICENSE.txt +0 -0
- {cppmodel-0.9.0.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/cpp-httplib-LICENSE.txt +0 -0
- {cppmodel-0.9.0.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/jwt-cpp-LICENSE.txt +0 -0
- {cppmodel-0.9.0.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/nlohmann-json-LICENSE.txt +0 -0
- {cppmodel-0.9.0.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/openssl-LICENSE.txt +0 -0
- {cppmodel-0.9.0.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,16 +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."""
|
|
322
|
-
return self._offline
|
|
323
|
-
|
|
324
|
-
@offline.setter
|
|
325
|
-
def offline(self, value):
|
|
326
|
-
_check(lib.cm_simulation_set_run_offline(self._live(), 1 if value else 0))
|
|
327
|
-
self._offline = bool(value)
|
|
328
|
-
|
|
329
317
|
def _default_fingerprint_file(self):
|
|
330
318
|
# The simulation's code: the subclass's file, else the callbacks' file, else the main script.
|
|
331
319
|
candidates = [type(self)] if type(self) is not Simulation else []
|
cppmodel/lib/cppmodel.dll
CHANGED
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: cppmodel
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.4
|
|
4
4
|
Summary: Write CppModel simulations in Python
|
|
5
5
|
Project-URL: Homepage, https://cppmodel.com
|
|
6
6
|
Author-email: Control Edge AB <support@cedge.se>
|
|
@@ -101,13 +101,11 @@ dicts and `None`. All three support `in`, `len()`, iteration and `keys()`.
|
|
|
101
101
|
|
|
102
102
|
## Workspace access
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
Every run reads its inputs from and records its execution in your workspace, so it needs to sign
|
|
105
|
+
in. For scripts and CI, set `CPPMODEL_USERNAME` and `CPPMODEL_PASSWORD`.
|
|
105
106
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
submitted.
|
|
109
|
-
|
|
110
|
-
Without credentials, the first run prints a sign-in link and waits until you've signed in. The link
|
|
107
|
+
Without credentials, the first run prints a sign-in link and waits 60 seconds for you to sign in
|
|
108
|
+
(`CPPMODEL_LOGIN_TIMEOUT` changes that, in seconds); without a sign-in, `run()` raises. The link
|
|
111
109
|
goes to the process's standard output, which Jupyter doesn't show, so use credentials in notebooks.
|
|
112
110
|
|
|
113
111
|
## Fingerprint
|
|
@@ -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=9quRJMz4axhrXnKsW_PKnnRHU8YkGcwz--UWDOcJS-U,5139968
|
|
5
|
+
cppmodel-0.9.4.dist-info/METADATA,sha256=kCY_ORGm8H3yiq93qELeJc_KJTcuNMroOJMDb8JXB9k,5259
|
|
6
|
+
cppmodel-0.9.4.dist-info/WHEEL,sha256=s6W5bnSXev0GMZbnklLd13pA6ggi4rZk-KiPiqsRWYg,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.0.dist-info/RECORD
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
cppmodel/__init__.py,sha256=ROu85RGFEeHsH8hSfT4qVk0Aud3EQoqF7hSI0tgZozw,594
|
|
2
|
-
cppmodel/_native.py,sha256=qUAZuxYVprNMVT0YEekZ7poJlMZkNgP2gyF42Lu09sg,4512
|
|
3
|
-
cppmodel/_simulation.py,sha256=2iogZUPmZO367SNlF7Wvxf253GYVTnHVPNe13UXhaPI,14502
|
|
4
|
-
cppmodel/lib/cppmodel.dll,sha256=xluWpsJG745X_H_dEUNIwLoErfhbJzYKUZ28ZXHL7ec,6093312
|
|
5
|
-
cppmodel-0.9.0.dist-info/METADATA,sha256=KF5E1BCwBiiWXhBdrI-gdiU02mhUDYgqiHBs83W4TWQ,5213
|
|
6
|
-
cppmodel-0.9.0.dist-info/WHEEL,sha256=s6W5bnSXev0GMZbnklLd13pA6ggi4rZk-KiPiqsRWYg,94
|
|
7
|
-
cppmodel-0.9.0.dist-info/licenses/LICENSE,sha256=m9J9CSAmn7L5LSEbmwtNhVbRCJin6u75y91XhYRNlgc,382
|
|
8
|
-
cppmodel-0.9.0.dist-info/licenses/licenses/IXWebSocket-LICENSE.txt,sha256=UXG83c7ZNKO_V4s5wzDDm-NnYgvQgBHdK1K4_KGJluk,1535
|
|
9
|
-
cppmodel-0.9.0.dist-info/licenses/licenses/cpp-httplib-LICENSE.txt,sha256=u1Rurlkk2O6ELg5Wfm1TPFgkvevM9gX5mls0KQNOZpc,1097
|
|
10
|
-
cppmodel-0.9.0.dist-info/licenses/licenses/jwt-cpp-LICENSE.txt,sha256=3ImDIAl-oGB03QcNCSSBVdOFbSNlZsPpTf-rQZX8_tg,1096
|
|
11
|
-
cppmodel-0.9.0.dist-info/licenses/licenses/nlohmann-json-LICENSE.txt,sha256=uXFSgrLx2xNZqRm7OlQt1DYv2eOK5y1CE2frEavmLuw,1097
|
|
12
|
-
cppmodel-0.9.0.dist-info/licenses/licenses/openssl-LICENSE.txt,sha256=_Ce2ibwJLiJOv_Sjt5qH-YTENsmZgRZL4YwgvG77QWM,627
|
|
13
|
-
cppmodel-0.9.0.dist-info/licenses/licenses/picojson-LICENSE.txt,sha256=0xRrtuowFzr_-Xnez32EsLDlSvO83J_wVUI7C6h8ebE,1361
|
|
14
|
-
cppmodel-0.9.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{cppmodel-0.9.0.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/IXWebSocket-LICENSE.txt
RENAMED
|
File without changes
|
{cppmodel-0.9.0.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/cpp-httplib-LICENSE.txt
RENAMED
|
File without changes
|
|
File without changes
|
{cppmodel-0.9.0.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/nlohmann-json-LICENSE.txt
RENAMED
|
File without changes
|
|
File without changes
|
{cppmodel-0.9.0.dist-info → cppmodel-0.9.4.dist-info}/licenses/licenses/picojson-LICENSE.txt
RENAMED
|
File without changes
|