Commit ba33cf2
Fix Firmware Flashing for merged binaries via USB (#246)
This pull request introduces significant enhancements to the autofocus
functionality in the frontend, adding support for a new hill-climbing
autofocus method, expanding live focus monitoring capabilities, and
improving the user interface for configuring autofocus parameters. It
also includes small updates to documentation and backend API utilities.
**Autofocus Method Enhancements:**
* Added support for hill-climbing autofocus, including UI for selecting
the method, configuring its parameters (initial step, min step,
reduction factor, max iterations), and backend API integration
(`frontend/src/components/AutofocusController.js`,
`frontend/src/axon/experiment-designer/ZFocusDimension.js`,
`frontend/src/backendapi/apiAutofocusControllerHillClimbing.js`).
[[1]](diffhunk://#diff-c3de947737de070529a7c4962892c79fe159cfc6329c99af1f87600bf0398199L163-R188)
[[2]](diffhunk://#diff-c3de947737de070529a7c4962892c79fe159cfc6329c99af1f87600bf0398199R55-R59)
[[3]](diffhunk://#diff-45e9e9a07fe68dc37fa41fbbc4fae253b9599cd23bdee02c65292d4d81cfe513L358-R388)
[[4]](diffhunk://#diff-45e9e9a07fe68dc37fa41fbbc4fae253b9599cd23bdee02c65292d4d81cfe513R532-R552)
[[5]](diffhunk://#diff-45e9e9a07fe68dc37fa41fbbc4fae253b9599cd23bdee02c65292d4d81cfe513R565-R607)
[[6]](diffhunk://#diff-5fe7141615a2256c23b61476b37cbc704ba4ede629a4fabdf4b0a4bd80aa8a2dR1-R43)
* The autofocus parameter UI now conditionally displays controls for
either Z-sweep or hill-climbing, and provides tooltips and explanations
for each method
(`frontend/src/axon/experiment-designer/ZFocusDimension.js`).
[[1]](diffhunk://#diff-45e9e9a07fe68dc37fa41fbbc4fae253b9599cd23bdee02c65292d4d81cfe513L358-R388)
[[2]](diffhunk://#diff-45e9e9a07fe68dc37fa41fbbc4fae253b9599cd23bdee02c65292d4d81cfe513R491)
[[3]](diffhunk://#diff-45e9e9a07fe68dc37fa41fbbc4fae253b9599cd23bdee02c65292d4d81cfe513L475-L492)
[[4]](diffhunk://#diff-45e9e9a07fe68dc37fa41fbbc4fae253b9599cd23bdee02c65292d4d81cfe513R532-R552)
[[5]](diffhunk://#diff-45e9e9a07fe68dc37fa41fbbc4fae253b9599cd23bdee02c65292d4d81cfe513R565-R607)
**Live Focus Monitoring Improvements:**
* Introduced a live focus monitoring section with configurable update
period, focus method, and crop size, as well as a rolling plot of the
last 20 focus values for real-time feedback
(`frontend/src/components/AutofocusController.js`).
[[1]](diffhunk://#diff-c3de947737de070529a7c4962892c79fe159cfc6329c99af1f87600bf0398199R38-R39)
[[2]](diffhunk://#diff-c3de947737de070529a7c4962892c79fe159cfc6329c99af1f87600bf0398199R157-R166)
[[3]](diffhunk://#diff-c3de947737de070529a7c4962892c79fe159cfc6329c99af1f87600bf0398199L263-R419)
**Point List Editor Usability:**
* Added a "Set Z" button in the Point List Editor to quickly set a
point's Z coordinate to the current stage position, improving workflow
efficiency (`frontend/src/axon/PointListEditorComponent.js`).
[[1]](diffhunk://#diff-ee91e602319fa9e01c59ef542d6ebeea361bc859b06e8c47ec7a6440e5068c14R10)
[[2]](diffhunk://#diff-ee91e602319fa9e01c59ef542d6ebeea361bc859b06e8c47ec7a6440e5068c14R44)
[[3]](diffhunk://#diff-ee91e602319fa9e01c59ef542d6ebeea361bc859b06e8c47ec7a6440e5068c14R85-R90)
[[4]](diffhunk://#diff-ee91e602319fa9e01c59ef542d6ebeea361bc859b06e8c47ec7a6440e5068c14L447-R465)
**API Utilities:**
* Added a new backend API utility for probing device state, useful for
verifying firmware after flashing
(`frontend/src/backendapi/apiUC2ConfigControllerProbeDeviceState.js`).
**Documentation:**
* Updated installation instructions in `README.md` to clarify the use of
`uv sync` and provide a recommended workflow.
---------
Co-authored-by: Florian Paproth <florian@paproth.biz>1 parent 76deb20 commit ba33cf2
File tree
26 files changed
+1945
-476
lines changed- frontend/src
- axon
- experiment-designer
- backendapi
- components
- state/slices
- imswitch
- imcontrol
- controller
- controllers
- experiment_controller
- server
- model
- io
- managers/positioners
- scripts
26 files changed
+1945
-476
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
| |||
130 | 139 | | |
131 | 140 | | |
132 | 141 | | |
| 142 | + | |
| 143 | + | |
133 | 144 | | |
134 | 145 | | |
135 | 146 | | |
136 | 147 | | |
137 | 148 | | |
138 | 149 | | |
| 150 | + | |
139 | 151 | | |
140 | 152 | | |
141 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
83 | 91 | | |
84 | 92 | | |
85 | 93 | | |
| |||
444 | 452 | | |
445 | 453 | | |
446 | 454 | | |
447 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
448 | 466 | | |
449 | 467 | | |
450 | 468 | | |
| |||
Lines changed: 99 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
| 358 | + | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
364 | 389 | | |
365 | 390 | | |
366 | 391 | | |
| |||
463 | 488 | | |
464 | 489 | | |
465 | 490 | | |
| 491 | + | |
466 | 492 | | |
467 | 493 | | |
468 | 494 | | |
| |||
472 | 498 | | |
473 | 499 | | |
474 | 500 | | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | 501 | | |
494 | 502 | | |
495 | 503 | | |
| |||
521 | 529 | | |
522 | 530 | | |
523 | 531 | | |
524 | | - | |
525 | | - | |
526 | | - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
527 | 538 | | |
528 | | - | |
529 | | - | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
530 | 542 | | |
531 | | - | |
532 | | - | |
533 | | - | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
534 | 606 | | |
535 | 607 | | |
536 | 608 | | |
| |||
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments