Commit graph

4580 commits

Author SHA1 Message Date
Joe Knapper
cab960fe2c Apply suggestions from code review of branch fom-af
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2026-05-13 17:14:36 +01:00
jaknapper
664bb00c12 Allow users to specify method for autofocus 2026-05-13 17:14:36 +01:00
jaknapper
881970ce34 Record fom as other sharpness metric 2026-05-13 17:14:36 +01:00
Julian Stirling
eff66eb667 Merge branch 'v3-labthings-validate-properties-on-set' into 'v3'
Update to validating properties on write.

See merge request openflexure/openflexure-microscope-server!555
2026-05-13 11:26:21 +00:00
Julian Stirling
e759970206 update picamera coverage zip 2026-05-13 11:53:20 +01:00
Joe Knapper
943ebb64b2 Merge branch 'bugfix/close_mitt_signals_' into 'v3'
Bugfix/close mitt signals

Closes #757

See merge request openflexure/openflexure-microscope-server!581
2026-05-13 10:44:50 +00:00
Richard Bowman
b00f90aada Remove settings from SmartStackMixin
As properties now take validation settings from the final class, we no
longer need to redefine settings here, so I've removed them.
2026-05-13 11:34:22 +01:00
Richard Bowman
622fa17634 Enable validation for all Things and pick correct branch
This commit updates the branch to use Thing._class_settings instead of FEATURE_FLAGS for a safer way to implement new features.
2026-05-13 11:34:21 +01:00
Richard Bowman
05f92b9b33 Specify the feature branch of LabThings and enable the feature flag.
I've put the feature flag in `openflexure_microscope_server.things.__init__` so that we only need it once, rather than next to every Thing definition.

I decided it was better here than, for example, in the server or cli modules because this way we still get the feature flags even if the Things are served from a different LabThings server.
2026-05-13 11:33:47 +01:00
Richard Bowman
d673ceab7b Update test suite to cope with LabThings validating properties on write (https://github.com/labthings/labthings-fastapi/pull/278) 2026-05-13 11:33:07 +01:00
Joe Knapper
b298728fe5 Merge branch 'gallery-ui-transition' into 'v3'
Start the UI transition from ScanList to Gallery

Closes #771

See merge request openflexure/openflexure-microscope-server!580
2026-05-13 10:30:48 +00:00
Joe Knapper
04b7d0d4fa Merge branch 'v3-default-factory-for-dictionaries' into 'v3'
Use a default_factory for dict default values

Closes #750 and #751

See merge request openflexure/openflexure-microscope-server!561
2026-05-13 08:03:52 +00:00
Joe Knapper
31210be9ac Merge branch 'objective-sim' into 'v3'
Scale blur in simulator based on objective

Closes #745

See merge request openflexure/openflexure-microscope-server!567
2026-05-13 08:02:44 +00:00
Joe Knapper
2e051f6d30 Apply suggestions from code review of branch gallery-ui-transition
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2026-05-13 08:44:55 +01:00
Antonio Anaya
ee8e09a9e1 bugfix(gallery) Close signals properly, unwatch, gracefully fails and prevent undefined all_items 2026-05-13 08:44:55 +01:00
Julian Stirling
5f6b54247d Start the UI transition from ScanList to Gallery 2026-05-13 08:44:55 +01:00
Richard Bowman
cb9270c9e8 Use a default_factory for dict default values
`backlash_steps` and `axis_inverted` were `lt.setting`s with default values that were dictionaries. This means they had mutable default values, which caused crosstalk in the test suite.

This commit swaps them to default factory functions. This should isolate instances from each other and stop the offending behaviour.
2026-05-13 08:26:52 +01:00
Antonio Anaya
0d2fb9de0b bugfix(actionButton) Unwrap arrow function at submitOnEvent 2026-05-12 21:43:03 +00:00
Antonio Anaya
27f09b91bb Apply suggestions from code review of branch bugfix/close_mitt_signals_
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2026-05-12 21:43:03 +00:00
Antonio Anaya
567cff3568 chore(node) add comments for signals management description 2026-05-12 21:43:03 +00:00
Antonio Anaya
1d8fa9d616 bugfix(eventbus) Unwrap arrow functions and close eventbus signals 2026-05-12 21:43:03 +00:00
Joe Knapper
d358d89334 Merge branch 'log-endpoints' into 'v3'
Update endpoints for logs

Closes #774

See merge request openflexure/openflexure-microscope-server!585
2026-05-12 16:29:48 +00:00
jaknapper
3420138e85 Mock updated api route 2026-05-12 16:11:03 +01:00
jaknapper
ec83556da7 Convert server prefix to str for Mock tests 2026-05-12 15:42:50 +01:00
Julian Stirling
fa2c4141f6 Merge branch 'bug-template' into 'v3'
More details in bug template

See merge request openflexure/openflexure-microscope-server!584
2026-05-12 13:37:14 +00:00
jaknapper
645a6dd136 Update endpoints for logs 2026-05-12 14:23:33 +01:00
Joe Knapper
d233715734 More details in bug template 2026-05-11 19:50:32 +01:00
Julian Stirling
92619e2131 Merge branch 'calibration_thing' into 'v3'
Calibrate settling times after moves

See merge request openflexure/openflexure-microscope-server!207
2026-05-11 12:32:30 +00:00
Julian Stirling
a2965e588d Merge branch 'v3-labthings-api-prefix' into 'v3'
Add an API prefix

See merge request openflexure/openflexure-microscope-server!562
2026-05-11 11:51:29 +00:00
jaknapper
cc6866b2e5 Add tests for measure settling time 2026-05-11 12:49:52 +01:00
jaknapper
c171e5bdde Remove hold from sharpness monitor 2026-05-11 12:49:20 +01:00
jaknapper
ffa023dfa9 Correct data types in sharpness monitors 2026-05-11 11:04:55 +00:00
jaknapper
500e08555c Measure settling time action and hold in sharpness monitor 2026-05-11 11:04:55 +00:00
Julian Stirling
b6efb73cba Fix data directory save location and mount path 2026-05-11 11:07:38 +01:00
Julian Stirling
fa5aaaf254 Update dependencies to use new labthings rc 2026-05-11 11:07:38 +01:00
Richard Bowman
f91373e215 Update default URL for overriding the origin. 2026-05-11 11:07:38 +01:00
Richard Bowman
c37ed236c3 Depend on the relevant labthings branch
This will need to be fixed before merge
2026-05-11 11:07:38 +01:00
Richard Bowman
93a2e87dac Adjust default origin URL to use /api/v3 prefix
This won't be the only URL that needs fixing, but it should make most of the web app work.
2026-05-11 11:07:38 +01:00
Richard Bowman
9851485057 Update config and lifecycle test to use API prefix
This adds an API prefix to the three config files, and updates the hard-coded URLs in the lifecycle test to use the new API root.

The change doesn't affect the unit or integration test suites, as neither of these set an API prefix.

Most of the required updates are likely to be in the web app, which I've not yet touched.
2026-05-11 11:07:38 +01:00
Julian Stirling
acdc88e870 Merge branch 'build/style-lint-fix-purge' into 'v3'
ui_migration Clean STYLE, setup Lint, at NPM and CI

Closes #764

See merge request openflexure/openflexure-microscope-server!577
2026-05-11 09:02:41 +00:00
Antonio Anaya
3b95d9a669 Apply suggestions from code review of branch build/style-lint-fix-purge
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2026-05-10 23:24:21 +00:00
Antonio Anaya
5c73007ec2 chore(node) update package lock file 2026-05-09 03:31:39 -06:00
Antonio Anaya
b6d145daa8 ui_migration build(ci) remove csspurge at request on MR 2026-05-09 00:54:59 -06:00
Antonio Anaya
4a9693df31 Apply suggestions from code review of branch build/style-lint-fix-purge
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2026-05-09 00:54:59 -06:00
Antonio Anaya
caf2157c04 ui_migration build(ci) added package and ci commands for stylelint --max-warnings=0 and --fix 2026-05-09 00:54:59 -06:00
Antonio Anaya
c7a49ffe0e ui_migration builf(purge) set configurations to minimize UIKIT on purge, set rules to minimize on build and not in serve. 2026-05-09 00:54:59 -06:00
Antonio Anaya
ba5e5b10f5 ui_migration lint(STYLE) Drop duplicates related to deprecated webkit-animation prefixes https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/-webkit-animation 2026-05-09 00:54:59 -06:00
Antonio Anaya
0724f727ea ui_migration lint(STYLE) Drop deprecated keyword break-word 2026-05-09 00:54:59 -06:00
Antonio Anaya
7e2518e40e ui_migration lint(STYLE) Use --fix to solve 110 problems 3 left 2026-05-09 00:54:59 -06:00
Antonio Anaya
a4b167b147 ui_migration bugfix(stylelint) Add configuration overrides to protect UIkit and VUE LESS and color parsing 2026-05-09 00:54:59 -06:00