lcsim 0.1.4__py3-none-any.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.
- lcsim/Roboto-Bold.ttf +0 -0
- lcsim/__init__.py +77 -0
- lcsim/bin/__init__.py +1 -0
- lcsim/bin/_deprecation.py +18 -0
- lcsim/bin/bench.py +1524 -0
- lcsim/bin/consym_certify.py +101 -0
- lcsim/bin/consym_frozen_q_energy_sweep.py +270 -0
- lcsim/bin/energy.py +85 -0
- lcsim/bin/extract.py +74 -0
- lcsim/bin/gui.py +16 -0
- lcsim/bin/optics.py +458 -0
- lcsim/bin/render.py +463 -0
- lcsim/bin/run.py +17 -0
- lcsim/bin/sad.py +137 -0
- lcsim/bin/tests.py +169 -0
- lcsim/cli.py +109 -0
- lcsim/compserver.py +38 -0
- lcsim/consym_energy_validation.py +121 -0
- lcsim/gui/__init__.py +48 -0
- lcsim/gui/beam.py +690 -0
- lcsim/gui/catalogs.py +45 -0
- lcsim/gui/cli.py +260 -0
- lcsim/gui/concentration.py +382 -0
- lcsim/gui/config.py +300 -0
- lcsim/gui/controller.py +966 -0
- lcsim/gui/controls.py +442 -0
- lcsim/gui/optics.py +46 -0
- lcsim/gui/properties.py +64 -0
- lcsim/gui/qt_runtime.py +953 -0
- lcsim/gui/render_controls.py +31 -0
- lcsim/gui/runtime.py +810 -0
- lcsim/gui/scenes.py +95 -0
- lcsim/gui/settings_ui.py +185 -0
- lcsim/gui/source.py +189 -0
- lcsim/gui/specs.py +264 -0
- lcsim/gui/window.py +1727 -0
- lcsim/history_reader.py +326 -0
- lcsim/install_guidance.py +181 -0
- lcsim/integrator.py +1442 -0
- lcsim/integrator_ui.py +462 -0
- lcsim/io/__init__.py +5 -0
- lcsim/io/static_fields.py +66 -0
- lcsim/lazy_module.py +34 -0
- lcsim/legacy/__init__.py +3 -0
- lcsim/legacy/history.py +64 -0
- lcsim/legacy/npz.py +245 -0
- lcsim/numba_warnings.py +51 -0
- lcsim/optics.py +439 -0
- lcsim/preview/__init__.py +33 -0
- lcsim/preview/sources.py +338 -0
- lcsim/problem/__init__.py +157 -0
- lcsim/problem/blocks.py +399 -0
- lcsim/problem/builtins.py +1153 -0
- lcsim/problem/codecs.py +1357 -0
- lcsim/problem/core.py +199 -0
- lcsim/problem/edit_metadata.py +100 -0
- lcsim/problem/edit_surface.py +682 -0
- lcsim/problem/fields.py +42 -0
- lcsim/problem/geometry.py +150 -0
- lcsim/problem/legacy_bridge.py +90 -0
- lcsim/problem/legacy_runtime.py +84 -0
- lcsim/problem/models.py +360 -0
- lcsim/problem/runtime_bridge.py +474 -0
- lcsim/problem/services.py +212 -0
- lcsim/problem/stores.py +268 -0
- lcsim/pyramid.py +6281 -0
- lcsim/pyramid_bench.py +1089 -0
- lcsim/pyramid_diagnostics.py +175 -0
- lcsim/pyramid_preview.py +176 -0
- lcsim/pyramid_timing.py +68 -0
- lcsim/render/__init__.py +3 -0
- lcsim/render/cli.py +376 -0
- lcsim/render/engine.py +1335 -0
- lcsim/render/inputs.py +256 -0
- lcsim/render.py +445 -0
- lcsim/render_annotation.py +171 -0
- lcsim/render_config.py +171 -0
- lcsim/renderserver.py +267 -0
- lcsim/runners/__init__.py +1 -0
- lcsim/runners/lcsrun/__init__.py +1 -0
- lcsim/runners/lcsrun/cli.py +1186 -0
- lcsim/runners/lcsrun/display.py +97 -0
- lcsim/runners/lcsrun/main.py +818 -0
- lcsim/runners/lcsrun/notify.py +36 -0
- lcsim/runners/lcsrun/profile.py +294 -0
- lcsim/runtime/__init__.py +44 -0
- lcsim/runtime/diagnostics.py +17 -0
- lcsim/runtime/export_cache.py +51 -0
- lcsim/runtime/history.py +197 -0
- lcsim/runtime/integrator_diagnostics.py +89 -0
- lcsim/runtime/io.py +292 -0
- lcsim/runtime/metrics.py +186 -0
- lcsim/runtime/session.py +646 -0
- lcsim/runtime/snapshot_update.py +61 -0
- lcsim/runtime/stationary.py +80 -0
- lcsim/serialization/__init__.py +6 -0
- lcsim/serialization/introspection.py +69 -0
- lcsim/serialization/json.py +28 -0
- lcsim/shaders/birefrigence.fs.glsl +28 -0
- lcsim/shaders/birefrigence.vs.glsl +507 -0
- lcsim/shaders/filter.fs.glsl +33 -0
- lcsim/shaders/filter.vs.glsl +10 -0
- lcsim/shaders/jones.fs.glsl +9 -0
- lcsim/shaders/jones.vs.glsl +72 -0
- lcsim/shaders/lagger_gaussian.fs.glsl +26 -0
- lcsim/shaders/lagger_gaussian.vs.glsl +11 -0
- lcsim/shaders/laser_position.fs.glsl +25 -0
- lcsim/shared.py +741 -0
- lcsim/simulators/__init__.py +28 -0
- lcsim/simulators/base.py +535 -0
- lcsim/simulators/bc.py +217 -0
- lcsim/simulators/conservative.py +2297 -0
- lcsim/simulators/consym.py +360 -0
- lcsim/simulators/consym_cell_tables.py +70 -0
- lcsim/simulators/consym_certification.py +1008 -0
- lcsim/simulators/consym_continuum_energy.py +109 -0
- lcsim/simulators/consym_kernels.py +12 -0
- lcsim/simulators/consym_projected_energy.py +310 -0
- lcsim/simulators/consym_pyramid.py +4979 -0
- lcsim/simulators/consym_pyramid_kernels.py +8 -0
- lcsim/simulators/consym_runtime_kernels.py +733 -0
- lcsim/simulators/consym_shared_kernels.py +640 -0
- lcsim/simulators/core.py +13 -0
- lcsim/simulators/core_common.py +948 -0
- lcsim/simulators/core_legacy.py +115 -0
- lcsim/simulators/core_preview.py +104 -0
- lcsim/simulators/core_runtime.py +410 -0
- lcsim/simulators/cuda_lazy.py +50 -0
- lcsim/simulators/factory.py +161 -0
- lcsim/simulators/legacy_director.py +330 -0
- lcsim/simulators/legacy_vector.py +319 -0
- lcsim/simulators/photophysics.py +290 -0
- lcsim/simulators/photophysics_kernels.py +39 -0
- lcsim/simulators/qcon.py +454 -0
- lcsim/simulators/qcon_runtime_kernels.py +1055 -0
- lcsim/simulators/qiso.py +455 -0
- lcsim/simulators/qiso_runtime_kernels.py +1367 -0
- lcsim/step_controller.py +1284 -0
- lcsim/stylesheet.css +4 -0
- lcsim/substrate_geometry.py +502 -0
- lcsim/utils.py +80 -0
- lcsim/view/__init__.py +5 -0
- lcsim/view/cli.py +65 -0
- lcsim/view/document.py +415 -0
- lcsim-0.1.4.dist-info/METADATA +218 -0
- lcsim-0.1.4.dist-info/RECORD +149 -0
- lcsim-0.1.4.dist-info/WHEEL +4 -0
- lcsim-0.1.4.dist-info/entry_points.txt +11 -0
- lcsim-0.1.4.dist-info/licenses/LICENSE.md +9 -0
lcsim/Roboto-Bold.ttf
ADDED
|
Binary file
|
lcsim/__init__.py
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"""Public package exports for LCSim."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
import importlib
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
_LAZY_IMPORTS = {
|
|
8
|
+
"BC": "lcsim.shared",
|
|
9
|
+
"CONSERVATIVE_FAMILY_MODELS": "lcsim.shared",
|
|
10
|
+
"CONSYM_MODEL": "lcsim.shared",
|
|
11
|
+
"CONSYM_SUBSTRATE_MODEL": "lcsim.shared",
|
|
12
|
+
"DEFAULT_INTEGRATOR": "lcsim.shared",
|
|
13
|
+
"DEFAULT_MODEL": "lcsim.shared",
|
|
14
|
+
"MODEL_DESCRIPTOR_BY_ID": "lcsim.shared",
|
|
15
|
+
"MODEL_DESCRIPTORS": "lcsim.shared",
|
|
16
|
+
"MODEL_NAMES": "lcsim.shared",
|
|
17
|
+
"ModelDescriptor": "lcsim.shared",
|
|
18
|
+
"QCON_CAYLEY_FIXED_INTEGRATOR": "lcsim.shared",
|
|
19
|
+
"QCON_MODEL": "lcsim.shared",
|
|
20
|
+
"QISO_MODEL": "lcsim.shared",
|
|
21
|
+
"CayleyFixed": "lcsim.integrator",
|
|
22
|
+
"compile_substrate_geometry": "lcsim.substrate_geometry",
|
|
23
|
+
"Fehlberg": "lcsim.integrator",
|
|
24
|
+
"ParameterDelta": "lcsim.history_reader",
|
|
25
|
+
"MidpointEuler": "lcsim.integrator",
|
|
26
|
+
"Progress": "lcsim.utils",
|
|
27
|
+
"Settings": "lcsim.shared",
|
|
28
|
+
"Simulation": "lcsim.integrator",
|
|
29
|
+
"SimulationMetadata": "lcsim.shared",
|
|
30
|
+
"Simulator": "lcsim.simulators",
|
|
31
|
+
"State": "lcsim.simulators",
|
|
32
|
+
"StateException": "lcsim.shared",
|
|
33
|
+
"StaticFieldPayload": "lcsim.shared",
|
|
34
|
+
"SnapshotSADFrame": "lcsim.problem",
|
|
35
|
+
"SnapshotSADReader": "lcsim.problem",
|
|
36
|
+
"SnapshotSADWriter": "lcsim.problem",
|
|
37
|
+
"SubstrateColumnGeometry": "lcsim.substrate_geometry",
|
|
38
|
+
"annotate_image": ("lcsim.render_annotation", "annotate_image"),
|
|
39
|
+
"create_simulator": ("lcsim.simulators", "create_simulator"),
|
|
40
|
+
"get_coordinates": "lcsim.shared",
|
|
41
|
+
"get_model_descriptor": "lcsim.shared",
|
|
42
|
+
"is_conservative_family": "lcsim.shared",
|
|
43
|
+
"iter_model_descriptors": "lcsim.shared",
|
|
44
|
+
"load_from_npz": ("lcsim.legacy.npz", "load_from_npz"),
|
|
45
|
+
"load_runtime_state_from_npz": ("lcsim.legacy.npz", "load_runtime_state_from_npz"),
|
|
46
|
+
"load_snapshot_from_npz": ("lcsim.runtime.io", "load_snapshot_from_npz"),
|
|
47
|
+
"load_snapshot_sad": "lcsim.problem",
|
|
48
|
+
"load_substrate_geometry_json": "lcsim.substrate_geometry",
|
|
49
|
+
"mix_settings": "lcsim.shared",
|
|
50
|
+
"npfloat": "lcsim.shared",
|
|
51
|
+
"render_cp": ("lcsim.optics", "render_cp"),
|
|
52
|
+
"save_to_npz": ("lcsim.legacy.npz", "save_to_npz"),
|
|
53
|
+
"save_runtime_state_to_npz": ("lcsim.legacy.npz", "save_runtime_state_to_npz"),
|
|
54
|
+
"save_runtime_snapshot_to_npz": ("lcsim.runtime.io", "save_runtime_snapshot_to_npz"),
|
|
55
|
+
"save_snapshot_to_npz": ("lcsim.runtime.io", "save_snapshot_to_npz"),
|
|
56
|
+
"save_snapshot_sad": "lcsim.problem",
|
|
57
|
+
"scale_state": ("lcsim.runtime.io", "scale_state"),
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def __getattr__(name: Any) -> Any:
|
|
62
|
+
"""Internal helper for getattr."""
|
|
63
|
+
try:
|
|
64
|
+
target = _LAZY_IMPORTS[name]
|
|
65
|
+
except KeyError as exc:
|
|
66
|
+
raise AttributeError(name) from exc
|
|
67
|
+
if isinstance(target, str):
|
|
68
|
+
module_name, attr_name = target, name
|
|
69
|
+
else:
|
|
70
|
+
module_name, attr_name = target
|
|
71
|
+
module = importlib.import_module(module_name)
|
|
72
|
+
value = getattr(module, attr_name)
|
|
73
|
+
globals()[name] = value
|
|
74
|
+
return value
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
__all__ = list(_LAZY_IMPORTS)
|
lcsim/bin/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Package initialization for lcsim.bin."""
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Shared notices for legacy console scripts."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def warn_legacy_entrypoint(command: str, replacement: str | None = None) -> None:
|
|
9
|
+
"""Print a visible compatibility notice for legacy direct scripts."""
|
|
10
|
+
message = f"{command} is deprecated as a direct script."
|
|
11
|
+
if replacement:
|
|
12
|
+
message = f"{message} Use `{replacement}` instead."
|
|
13
|
+
else:
|
|
14
|
+
message = f"{message} Prefer `lcsim <mode>` where available."
|
|
15
|
+
print(f"DeprecationWarning: {message}", file=sys.stderr)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
__all__ = ["warn_legacy_entrypoint"]
|