Commit graph

3892 commits

Author SHA1 Message Date
Chish36
6579a65f84 Made changes based on ruff-lint-increased feedback 2025-10-17 15:19:06 +01:00
Chish36
32129125d6 Fixed spelling 2025-10-17 15:19:06 +01:00
Chish36
8ce7f9f779 Removed empty lines 2025-10-17 15:19:06 +01:00
Chish36
d035b186a2 Updated docstrings 2025-10-17 15:19:06 +01:00
Chish36
f0a67bac19 Type set and added default values to data tracker class 2025-10-17 15:19:06 +01:00
Chish36
4106d0348c Delta is tracked with class now 2025-10-17 15:19:06 +01:00
Chish36
63bd34f548 Removed focus_data 2025-10-17 15:19:06 +01:00
Chish36
db0dc11274 Tracking correlations and stage coordinates with class now. 2025-10-17 15:19:06 +01:00
Chish36
47bc1479e2 Changed function names. 2025-10-17 15:19:06 +01:00
Chish36
703e8293d5 Rom data is now saved to settings.json 2025-10-17 15:19:06 +01:00
Chish36
f7264441e1 Updated labthings dependencies 2025-10-17 15:19:06 +01:00
Chish36
38906c8fff Moved quadratic function to utilities file 2025-10-17 15:19:05 +01:00
Chish36
d494761cbb Updated docstrings and fixed ruff errors 2025-10-17 15:19:05 +01:00
Chish36
1c7527c2ef Parisitic motion is now tracked with an exception 2025-10-17 15:19:05 +01:00
Chish36
23d53949b4 Small moves and medium moves are now in separate functions 2025-10-17 15:19:05 +01:00
Chish36
61c3877202 Removed the need for steps_generate function 2025-10-17 15:19:05 +01:00
Chish36
e74ac9d859 Improved docstrings and type hints. 2025-10-17 15:19:05 +01:00
Chish36
e327305549 Docstring added 2025-10-17 15:19:05 +01:00
Chish36
b90ecf8c49 Motion detection is now a function and a few other minor tweaks 2025-10-17 15:19:05 +01:00
Chish36
ada120db9c Minor tweaks to z_pred and lowered tolerance for failure 2025-10-17 15:19:05 +01:00
Chish36
154870142d Optional autofocus and other minor tweaks 2025-10-17 15:19:05 +01:00
Chish36
0bf3b4210a Added stage measure to config list 2025-10-17 15:19:05 +01:00
Chish36
725f993366 Typehints and docstrings added 2025-10-17 15:19:05 +01:00
Chish36
0267251a18 Move and measure and z predict are now separate functions 2025-10-17 15:19:05 +01:00
Chish36
71e21d1e72 Step range and all other data is saved to stage_measure thing 2025-10-17 15:19:05 +01:00
Chish36
e0b086bdc8 Added parisitic motion detect, z prediction and saved results 2025-10-17 15:19:05 +01:00
Chish36
eb01aaf017 Completes all necessary movements along a single axis 2025-10-17 15:19:05 +01:00
Julian Stirling
3d3ca9ebcf Merge branch 'log-lines' into 'v3'
Strip new lines when logging stitching

Closes #567

See merge request openflexure/openflexure-microscope-server!406
2025-10-17 13:17:49 +00:00
jaknapper
19913b8f48 Limit brightness and contrast, move sliders to high z to avoid collisions 2025-10-16 12:45:14 +01:00
jaknapper
fb3658c933 Colour sliders in seadragon viewer 2025-10-16 11:47:30 +01:00
Joe Knapper
841c340cdf Scan data card centres lists, displays duration 2025-10-14 17:50:17 +01:00
Joe Knapper
f23c8cd490 Merge branch 'fix-jitter' into 'v3'
Fix jitter at specific screen sizes during scan

See merge request openflexure/openflexure-microscope-server!404
2025-10-10 14:14:34 +00:00
jaknapper
416830cbe8 Strip new lines when logging stitching 2025-10-10 12:27:09 +01:00
Julian Stirling
97fe2f357d Merge branch 'bump-version-for-alpha3' into 'v3'
Bump version for alpha3 and update changelog

See merge request openflexure/openflexure-microscope-server!405
2025-10-09 22:28:42 +00:00
Julian Stirling
96ffbb2b49 Bump version for alpha3 and update changelog 2025-10-09 19:55:42 +01:00
Julian Stirling
513a9e40bd Merge branch 'document_simulation' into 'v3'
Improve documentation for simulation server

Closes #517

See merge request openflexure/openflexure-microscope-server!390
2025-10-09 17:45:54 +00:00
Julian Stirling
c6bda196b1 Merge branch 'ce-disable' into 'v3'
Ce disable

Closes #553

See merge request openflexure/openflexure-microscope-server!403
2025-10-09 17:45:49 +00:00
jaknapper
b58ddbf7d9 Update testing 2025-10-09 17:51:15 +01:00
Julian Stirling
4135532476 Apply suggestions from code review of branch ce-disable 2025-10-09 17:46:13 +01:00
Julian Stirling
46f3a8d5de Fix jitter at specific screen sizes during scan 2025-10-09 17:00:45 +01:00
Chish36
38c991d232 Minor corrections applied 2025-10-09 15:53:57 +01:00
Chish36
e56a11ef66 Added more info on starting the simulation server and some basic instructions on simulating a scan 2025-10-09 15:51:26 +01:00
Joe Knapper
909de1709d set ce_enable in tuning_utils 2025-10-09 15:36:01 +01:00
Julian Stirling
94541b2d4f Merge branch 'stack-height-sanitise' into 'v3'
Verify stack params at start of scan main loop

Closes #455

See merge request openflexure/openflexure-microscope-server!400
2025-10-09 14:00:59 +00:00
Joe Knapper
089beae01a Tests for coercing stack params to valid values.
Co-authored with Julian Stirling
2025-10-09 14:26:01 +01:00
Joe Knapper
fa6fdb1a67 Stack parameter coercion in create_stack_params
Co-authored with Julian Stirling
2025-10-09 14:23:47 +01:00
Joe Knapper
33ff356f76 Apply suggestions from code review of branch stack-height-sanitise
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-10-09 14:22:48 +01:00
Richard Bowman
c89db72d0a Don't coerce or log from validators.
Passing a logger in to the Model is hard: I've changed the
StackParams model so that it only validates, and raises a
ValueError if it's not correct.

Pydantic will turn the ValueError into a ValidationError.
2025-10-09 14:22:45 +01:00
Joe Knapper
05e0394485 StackParams as pydantic basemodel with validators 2025-10-09 14:22:42 +01:00
Joe Knapper
f90e716d8e Stack limits as globals 2025-10-09 14:22:40 +01:00