Commit Graph
10 Commits
Author SHA1 Message Date
lemke_handClaude Sonnet 5 6acf6bd402 Add 'respawn' subcommand: CLI equivalent of the GUI's remote restart
restart/stop/start only ever manage a process on the local host
(pgrep/systemctl are inherently local) -- pointing $URL at a server
running elsewhere, as a different account, does nothing useful there:
it just finds no local process and starts a brand-new one right here.

respawn instead POSTs /admin/restart to $URL over HTTP, same as the
GUI's "Restart process" button (client.reinit(mode="restart") ->
client.restart()) -- the server re-execs *itself* (os.execv, same
PID/user/host it already runs as), so this correctly reaches the real
process regardless of where the CLI is invoked from. -w polls /health
afterward until it reports ready with a new instance_id, mirroring
StatusServerClient.restart(wait=True)'s own timing.

Verified against a local fake HTTP server (no-wait, --wait, and the
connection-refused path) -- not against the real one, deliberately.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-16 08:14:51 +02:00
lemke_handClaude Sonnet 5 16a0cb0faf Remove redundant det_jf; add dummy 2D test fixture; fix mesh-scan repetitions crash; add eco-escape-test
- Remove det_jf: now that det_diff was fixed to JF01T03V01 (previous
  commit), det_jf was a second device pointing at the same physical
  Jungfrau, otherwise unreferenced anywhere.

- Add bernina.dummy (DummyMexicanHat): x, y (DummyAdjustable) + imex
  (DetectorGet reading a live 2D Mexican-hat signal of their current
  values, (1-r^2)*exp(-r^2/2), r=sqrt(x^2+y^2) -- stays within [-1, 1]
  for any x, y, small Gaussian noise by default). No real hardware;
  for testing grid-scan / live 2D counter-grid machinery.

- Fix Scans.meshscan(..., repetitions=N>1): grid_specs["index_plan"] is
  built once, for a single pass over the grid, before StepScan.__init__
  repeats `values`/`pulses_per_step` by `repetitions` -- so
  do_next_step()'s gridspecs["index_plan"][self.next_step] indexed past
  the end (IndexError) the moment the scan entered its second
  repetition. Now repeats index_plan the same way.

- Add scripts/eco-escape-test: like eco-dev, but also prepends a sibling
  escape-fel checkout to PYTHONPATH (assumed to live next to this eco
  checkout), for testing local checkouts of both together instead of
  whatever's installed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-12 15:13:30 +02:00
lemke_h 33612ab192 fixes 2026-09-07 16:54:05 +02:00
lemke_h bb3c8a2b56 fixes mainly 2026-09-06 16:34:29 +02:00
lemke_h 2e6a97fef5 fixes mainly 2026-09-06 16:34:18 +02:00
lemke_h acf4b7ce98 am 2026-08-25 21:40:13 +02:00
lemke_h 1f7647cad4 am 2026-08-25 21:39:29 +02:00
lemke_h 09fc748261 dev script updates. 2026-08-25 21:38:57 +02:00
gac bernina d133db4e6e env change 2026-08-25 20:28:09 +02:00
gac bernina 97a9020149 updates to run 2026-08-21 15:10:25 +02:00