Commit graph

398 commits

Author SHA1 Message Date
Julian Stirling
2cb4003835 Add module level docstrings. 2025-07-10 09:24:50 +01:00
Julian Stirling
80beeea07b Add punctuation to docstrings 2025-07-10 09:24:50 +01:00
Julian Stirling
4dc41bb008 Single line summaries of docstrings 2025-07-10 09:24:49 +01:00
Julian Stirling
35d47fe3ed Starting docstring on the same lines as the quotations 2025-07-10 09:24:49 +01:00
Julian Stirling
be6a6ca6fe No starting docstrings with This 2025-07-10 09:24:49 +01:00
Julian Stirling
a84a916719 Restructured text fixes so that pydoctor would return without an error 2025-07-09 23:59:08 +01:00
Julian Stirling
35d6e45892 Refactor and simplify how picamera settings work 2025-07-07 15:25:16 +01:00
Julian Stirling
52a80ef66b And adjust for new as lt import 2025-07-07 15:25:14 +01:00
Beth Probert
e936dc2974 Apply suggestions from code review of branch unique-len 2025-07-02 13:12:10 +00:00
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