Spaces:
Sleeping
Sleeping
Commit History
-
Streamlit lazy per-tab render + CI diagnostics
GUI (src/cdpr/interface/gui.py): - matplotlib.use("Agg", force=True) defensively in case the module is imported through a non-streamlit_app entry-point. - CDPR_GUI_FRUGAL env knob trims the default workload to 0.5 s / 5 ms so the free-tier Streamlit Cloud worker (~1 GB) does not OOM on the first Run simulation click. - Result tabs are now lazy: each tab renders its figure only after the user clicks "Render <key>", and the figure is cached in session_state for the rest of the session. Previously six matplotlib figures — including the 3D scene — were rendered on every script rerun, which silently killed the worker and left a blank page. - 3D scene is marked "heavy" with an explicit caption; its trajectory is subsampled to 200 points to bound memory. - Plot helpers import matplotlib / plots2d / scene lazily so the initial module load stays cheap. - _log() writes to stderr so the Streamlit Cloud manage-app log shows what the worker was doing right before it died. - Ever…d02aecd
-
CI: use --prefer-binary + consistent python -m pip
The Ubuntu runner has been failing because pip was compiling scipy / matplotlib from source instead of taking the prebuilt wheels. Same class of failure that bit the Render Docker build before we fixed it. Also switched the pytest invocation to `python -m pytest` so it runs through the same interpreter setup-python pinned, not whichever `pytest` shim landed first on PATH.d5b54b8 -
Initial commit: cdpr Phases 1-7 + deployment scaffolding
Scientific core (Phase 1): - Pose/Twist/Wrench primitives, SE(3) algebra - Robot configuration (anchors, attachments, inertia, cable limits) - Inverse + forward kinematics, structure matrix - Tension distribution (bounded QP), wrench feasibility - Three per-cable physics: massless, linear-elastic, Irvine catenary - Rigid-body Newton-Euler dynamics, RK4 + semi-implicit integrators - Workspace analysis (WCW, WFW, voxel grid) - Parametric trajectories with retiming - Reference robot catalogue (IPAnema-class, CoGiRo-class) Visualisation + ingestion + reports (Phase 2): - 2D analytics, 3D scene with tension heatmap and singularity indicator - Animation (playback, frame stepping, live streaming) with MP4/GIF export - Workspace volume rendering - Experiment recording (CSV + JSON metadata + reproducibility manifest) - Replay engine + dataset comparison - Publication-grade reports: LaTeX figures, booktabs tables, Markdown - FastAPI service + Streamlit research console - Optional external-physi…5f38e95