Spaces:
Sleeping
Sleeping
Commit History
-
Fix CI on 3.11+3.12 and harden Streamlit against any-rerun blank
CI was failing for two unrelated reasons that the new verbose pytest log finally surfaced: * **Python 3.12 — TypeError in KelvinVoigtModel.diagnostics().** ``@dataclass(slots=True)`` replaces the original class object with a freshly constructed slotted one. The ``__class__`` cell that zero-arg ``super()`` captures at compile time still points to the pre- replacement class, but ``self`` is an instance of the post-replacement class --- so the runtime check ``isinstance(self, __class__)`` raises ``TypeError: super(type, obj): obj must be an instance or subtype of type``. Replaced with an explicit ``CableModel.diagnostics(self, ...)`` call; this is correct here because ``CableModel`` is the single base class (no diamond inheritance). * **Python 3.11 — SyntaxError in cdpr/reports/bundle.py:216.** An f-string slot contained ``r.scenario_name.replace('_', r'\_')``. PEP 701 lifted the "no backslash in f-string expression" rule only in 3.12. Hoisted the ``.replace()`` …5cc4e7f
-
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