wavesimpro 1.0.1__tar.gz → 1.0.2__tar.gz
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.
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/PKG-INFO +1 -1
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/pyproject.toml +1 -1
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro/__init__.py +1 -1
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro/execute.py +5 -5
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro.egg-info/PKG-INFO +1 -1
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/setup.cfg +0 -0
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro/__main__.py +0 -0
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro/binary_utils.py +0 -0
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro/client.py +0 -0
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro/config.py +0 -0
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro/exceptions.py +0 -0
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro/json_helper.py +0 -0
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro/py.typed +0 -0
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro/setup.py +0 -0
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro/simulate.py +0 -0
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro/validate.py +0 -0
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro.egg-info/SOURCES.txt +0 -0
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro.egg-info/dependency_links.txt +0 -0
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro.egg-info/requires.txt +0 -0
- {wavesimpro-1.0.1 → wavesimpro-1.0.2}/src/wavesimpro.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "wavesimpro"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.2"
|
|
8
8
|
description = "WavesimPro Python API — cloud execution client for the Rayfos simulation platform"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
@@ -245,7 +245,7 @@ def execute_via_api(
|
|
|
245
245
|
|
|
246
246
|
if pre is not None:
|
|
247
247
|
status = (pre.get("status") or "").lower()
|
|
248
|
-
|
|
248
|
+
pre_description = pre.get("description") or ""
|
|
249
249
|
est = pre.get("estimate") or {}
|
|
250
250
|
logger.info(
|
|
251
251
|
f"Preflight: status={status} "
|
|
@@ -253,24 +253,24 @@ def execute_via_api(
|
|
|
253
253
|
f"(E-field {est.get('efieldMemoryGB', 0):.2f} GB + workspace {est.get('workspaceMemoryGB', 0):.2f} GB) "
|
|
254
254
|
f"grid={est.get('nx')}x{est.get('ny')}x{est.get('nz')}"
|
|
255
255
|
)
|
|
256
|
-
logger.info(f"Preflight: {
|
|
256
|
+
logger.info(f"Preflight: {pre_description}")
|
|
257
257
|
for s in pre.get("suggestedAdjustments") or []:
|
|
258
258
|
logger.info(f" Suggestion: {s}")
|
|
259
259
|
if status == "error":
|
|
260
260
|
raise RuntimeError(
|
|
261
|
-
f"Preflight rejected the simulation: {
|
|
261
|
+
f"Preflight rejected the simulation: {pre_description} "
|
|
262
262
|
f"(no upload was attempted). "
|
|
263
263
|
f"Suggested adjustments: {pre.get('suggestedAdjustments') or '(none)'}"
|
|
264
264
|
)
|
|
265
265
|
if status == "warning":
|
|
266
|
-
logger.warning(f"Preflight warning: {
|
|
266
|
+
logger.warning(f"Preflight warning: {pre_description}")
|
|
267
267
|
|
|
268
268
|
# 6. Create or reuse project/version
|
|
269
269
|
auto_create = not project_id or not version_id
|
|
270
270
|
if auto_create:
|
|
271
271
|
logger.info("Creating project...")
|
|
272
272
|
project_result = client.create_project(
|
|
273
|
-
name=
|
|
273
|
+
name=description,
|
|
274
274
|
app="wavesim",
|
|
275
275
|
description=f"Multi-source simulation ({len(sources_info)} source(s))",
|
|
276
276
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|