Julian Stirling
8a28a17461
Combine uniquness and length checks
2025-07-02 13:25:07 +01:00
Beth Probert
f3a873ae58
Apply suggestions from code review of branch download-stitched-image
...
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2025-07-02 09:51:27 +00:00
Julian Stirling
2e18c2017a
Apply suggestions from code review of branch download-stitched-image
...
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-07-02 09:39:33 +00:00
Julian Stirling
7295b86cf6
Split up ScanDirectory._find_files into seperate functions
2025-07-01 19:45:45 +01:00
Julian Stirling
254305a7a5
Clarify whether name or path is returned in scan directory functions
2025-07-01 19:21:56 +01:00
Julian Stirling
9b78b4620d
Fix disabled HTML button and apply code review suggestions for branch download-stitched-image
...
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2025-07-01 12:20:40 +01:00
Julian Stirling
3671d52499
Do not zip DZI files, or their associated tiles
2025-07-01 09:04:14 +01:00
Julian Stirling
daf2cee481
Add tests and correct stitch path
2025-06-30 23:03:54 +01:00
Julian Stirling
51f9df995d
More changes suggested in review, generally docstring issues.
2025-06-30 17:25:58 +01:00
Julian Stirling
ad838e8643
Apply suggestions from code review of branch split-scan-dir-operations
...
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-06-30 17:25:58 +01:00
Julian Stirling
7f0745d772
Add some more scan_directories tests
2025-06-28 23:59:35 +01:00
Julian Stirling
7193ec34f5
Starting to test more smart scan functionality using mocked Thing Dependencies
2025-06-27 21:06:16 +01:00
Julian Stirling
3aa9b9100a
Add a number of tests for scan directories and fix bugs
2025-06-27 21:06:16 +01:00
Julian Stirling
1267d881b9
Start writing tests for smart scan
...
Focusing on methods that don't start the whole scan.
2025-06-27 21:06:16 +01:00
Julian Stirling
32f78a4cff
Trying to make a distinction between file directory operations for scans and scanning code
...
This started as a small change and spiralled out of control it needs good unit tests and testing
before considering to merge
2025-06-27 21:06:16 +01:00
Julian Stirling
8002600fcf
Apply suggestions from code review of branch fast-stack
...
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2025-06-27 16:40:18 +00:00
Julian Stirling
9a92fd478a
Final docstring and testing updates based on code review
2025-06-27 16:54:28 +01:00
Julian Stirling
46f3d21632
Apply suggestions from code review of branch fast-stack
...
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-06-27 11:52:53 +01:00
Julian Stirling
fc6c13f40e
Apply suggestions from code review of branch fast-stack
...
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-06-27 10:41:53 +00:00
Julian Stirling
73e54b802b
Stop smart stack infinietly looping
2025-06-27 01:29:26 +01:00
Julian Stirling
2ce2f998fa
add tests for helper classes defined by fast stack
2025-06-27 00:34:51 +01:00
Julian Stirling
05af5e7548
Write unit teasts for CameraMemoryBuffer and fix minor issues found
2025-06-26 22:49:09 +01:00
jaknapper
f6cc7403e3
Update test_smart_spiral_first_few_pos() as smart stack chooses a different z_estimate
2025-06-20 15:01:09 +01:00
Julian Stirling
2050c2dc7c
Add return checker, needed 4 fixes
2025-06-10 16:07:48 +01:00
jaknapper
c18472dc8a
Add the import info for ScanPlanner
2025-04-17 09:56:23 +01:00
Joe Knapper
041106ebea
Only open pickle file if planner was successfully generated
2025-04-17 08:48:14 +00:00
Joe Knapper
871cab72f4
Apply 5 suggestion(s) to 2 file(s)
...
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
2025-04-17 08:43:51 +00:00
Joe Knapper
c18667c973
Update pickles
2025-04-15 16:38:11 +01:00
Joe Knapper
b414697cfb
Update testing for multiple sample shapes
2025-04-15 16:35:52 +01:00
jaknapper
ec25ae7126
Add a scan path planner that prioritises shorter moves
2025-04-14 18:49:35 +01:00
Julian Stirling
06632f195e
Spelling corrections and docstring improvements
...
Co-authored by Joe Knapper <jaknapper@hotmail.com>
2025-04-14 15:46:27 +00:00
Julian Stirling
2ced848695
Add functionality for testing the scan planner on a given sample shape
2025-04-14 11:27:25 +01:00
Julian Stirling
a0b6dbdfce
Add weay to access a copy of the data from a ScanPlanner
2025-04-14 11:27:25 +01:00
Julian Stirling
91073535a8
More tests for scan planners
2025-04-14 11:27:25 +01:00
Julian Stirling
842e196f9b
Add some basic tests, and do minor fixes based on tests and MyPy
2025-04-14 11:27:25 +01:00
Richard Bowman
9fd8fc37f1
Formatted with Ruff
2024-12-03 06:46:08 +00:00
Richard Bowman
27aec769a2
Linter fixes
...
NB I have permitted bare except: blocks in smart_scan. This should be reverted.
2024-12-03 06:43:45 +00:00
Richard Bowman
57177c6a56
Sped up camera and got CSM passing
...
Using lower resolution helps speed it up, and skipping CSM settling time makes a big difference.
2024-12-03 06:35:16 +00:00
Richard Bowman
1e7069b375
Add more tests, speed up dummy stage
...
I've sped up the stage motion, to run tests in a more reasonable time.
CSM doesn't yet calibrate in the test - I suspect debugging of capture_array
is needed.
2024-12-03 00:16:26 +00:00
Richard Bowman
728aa12d07
Add more unit tests
...
I'm now testing camera metadata and stage functionality. This is only using
the simulated HW - but it's a start.
It would be good to add tests for the
camera-stage mapping Thing, though
that may require speeding up the stage.
2024-12-02 23:26:32 +00:00
Richard Bowman
58066f1948
Add a first unit test
...
This checks that the server can start
and perform an autofocus.
Autofocus in turn will test the camera and stage dependencies.
2024-11-29 13:03:36 +00:00
Richard Bowman
d0eb9fa2c1
Format/comment improvements
2023-12-13 16:35:13 +00:00
Richard Bowman
f2f00b0d11
Update w3c schema to 2020 format
...
The `thing-context` definition used a 2019 draft of how to specify a
tuple (where `items` set the mandatory items and `additionalItems`
set the rest). These have been renamed to `prefixItems` and `items`
respectively, and I have applied this change. Schema now validates
again :)
2022-08-09 13:33:10 +01:00
Richard Bowman
a9fff24848
Explicitly specify encoding
...
The update to pylint means we were failing because open()
doesn't specify the encoding everywhere. I have now specified utf-8
everywhere. This was patchy before, and is default behaviour on the
Pi. There's a slim chance it will cause some issues on Windows, but
that shouldn't affect anyone outside the developers.
I've also ignored a couple of new spurious warnings, and explicitly
ignored some unused variables.
2022-08-09 07:16:44 +01:00
Richard
d7d7a8cc8d
Blackened test_app.py
2021-08-09 22:01:14 +01:00
Richard
c831937b05
Validate thing description in tests
2021-07-26 02:48:45 +01:00
Richard
5e36837e5f
Blackened tests
2021-07-25 22:59:59 +01:00
Richard
80cebe3ebc
Add test for valid OpenAPI
2021-07-25 22:26:52 +01:00
Joel Collins
8e4d34205f
Isort
2021-01-08 12:34:41 +00:00
Joel Collins
bd7833c20f
Test app object initialises
2021-01-07 10:23:27 +00:00