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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wavesimpro
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: WavesimPro Python API — cloud execution client for the Rayfos simulation platform
5
5
  Author: Rayfos
6
6
  Project-URL: Repository, https://github.com/rayfos/wavesimpro
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "wavesimpro"
7
- version = "1.0.1"
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"
@@ -45,7 +45,7 @@ from .json_helper import (
45
45
  parse_progress_data,
46
46
  )
47
47
 
48
- __version__ = "1.0.1"
48
+ __version__ = "1.0.2"
49
49
  __all__ = [
50
50
  # Client
51
51
  "RayfosClient",
@@ -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
- description = pre.get("description") or ""
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: {description}")
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: {description} "
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: {description}")
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=f"{description} - Wavesim Python API",
273
+ name=description,
274
274
  app="wavesim",
275
275
  description=f"Multi-source simulation ({len(sources_info)} source(s))",
276
276
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wavesimpro
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: WavesimPro Python API — cloud execution client for the Rayfos simulation platform
5
5
  Author: Rayfos
6
6
  Project-URL: Repository, https://github.com/rayfos/wavesimpro
File without changes