57a83cd4f87f174e22fe47c08d9a2b7fe7ef1ffc
cosh(z)**2 overflows past |z|~355, which happens routinely once solve_ivp evaluates the sensor event far from x_sensor over a wide time budget -- correct result (bump->0) but with a RuntimeWarning on every call, which would flood stderr across a million-run sweep. Clamp the argument to ±20 (already ~1e-17, physically indistinguishable from further growth) before computing cosh. Caught by running a real 500-run sweep through Docker as part of Stage 8 verification, not by unit tests alone -- added a regression test asserting no warning and a finite result far from the sensor. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
gausse
Симулятор и оптимизатор многоступенчатого электромагнитного ускорителя (coilgun) на реальных, доступных в рознице компонентах.
Полный план и чек-лист этапов — в PLAN.md.
Установка (Docker — основной способ)
docker compose build
docker compose run --rm --entrypoint pytest gausse -q # тесты
docker compose run --rm gausse sweep --n 1000 # CLI (после реализации Этапа 6)
Результаты (SQLite, отчёты) должны сохраняться в ./results, примонтированный
в контейнер как /app/results (см. docker-compose.yml), чтобы переживать
пересборку образа.
Установка без Docker (локальная разработка)
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest
Description
v0.1.0
Latest
Languages
Python
98.9%
Shell
0.9%
Dockerfile
0.2%