Richard Bowman
1cea75be70
Formatting fixes
2021-03-31 09:40:31 +01:00
Richard Bowman
e73ee8875c
Fixed type annotations in autofocus and mock stage
...
I don't know why these didn't fail before - possibly because of
incomplete type information from old numpy...
I removed a few annotations because they were failing (e.g.
np.sum can return a scalar or an array), but I don't think
this should be a problem - the function inputs and return values
are still typed.
2021-03-30 17:51:00 +01:00
Richard Bowman
cd5e32b843
Removed deprecated np.float
...
numpy 1.20 deprecates np.float, which was only ever an alias for
``float``. I've replaced all occurrences of np.float with float, as
recommended. There should be no change in functionality.
2021-03-30 17:40:19 +01:00
Joel Collins
0592d31b22
Fix #194
2020-12-14 15:00:37 +00:00
Joel Collins
9659c45bb4
Fixed SangaDeltaStage type annotations
2020-12-07 12:44:34 +00:00
Joel Collins
311366c943
Added type hints to CSM extension
2020-12-04 17:05:40 +00:00
Joel Collins
63b633ba44
2.9 dev numpy types
2020-12-04 13:35:11 +00:00
Joel Collins
f2a2d880f2
Stricter runtime type checks
2020-12-01 17:30:53 +00:00
Joel Collins
ac667c3e2a
Fixed types in move_rel method
2020-12-01 17:10:47 +00:00
Joel Collins
7866ec0f47
Static type analysis
2020-11-30 13:36:45 +00:00
Joel Collins
6fb61e1e3f
Reverted logging style
2020-11-12 15:45:58 +00:00
Joel Collins
9f5252194a
Updated all log strings to new format
2020-11-12 15:12:17 +00:00
Joel Collins
4c61f0c847
Reduced long-term lock usage
2020-11-06 10:27:22 +00:00
Joel Collins
58f7686aea
Added a settle time to all stage moves
2020-10-26 14:51:34 +00:00
Joel Collins
994e83dbeb
Code cleanup
2020-10-14 14:56:29 +00:00
Joel Collins
2bfb988460
Code formatting
2020-10-13 15:02:19 +01:00
Samuel McDermott
6dcd6601c4
Include option for delta stage in microscope initialisation
2020-09-06 17:38:57 +01:00
Samuel McDermott
5e9e8cb2a3
Merge remote-tracking branch 'origin/master' into deltastage
2020-08-27 15:46:17 +01:00
Joel Collins
24398ba7dc
Updated tasks nomenclature
2020-07-21 12:54:42 +01:00
Joel Collins
9cecb477cb
Flipped to explicit finite lock timeouts
2020-06-29 09:03:27 +01:00
Joel Collins
2435842ff6
Changed locks to 1s default
2020-06-25 16:48:17 +01:00
Joel Collins
3ee58b3adc
Close #153
2020-06-25 15:58:42 +01:00
Joel Collins
7c1c49eff2
Added 5 second timeout to device locks
2020-06-24 10:39:00 +01:00
Joel Collins
efd872babb
Remove stage timeout
2020-06-15 16:19:07 +01:00
Joel Collins
160cd82889
Lock sangaboard while reading position
2020-06-15 16:18:58 +01:00
Joel Collins
7c9f42f7f3
Optimised captures by using greenlets for disk IO
2020-06-11 11:42:31 +01:00
Joel Collins
698f1a5938
Switched to Sangaboard PyPI distribution and updated version number
2020-06-04 13:48:33 +01:00
Joel Collins
aed2a05dec
Fixed typo
2020-05-26 13:28:20 +01:00
Joel Collins
81546a1c8d
Add timeout support
2020-05-26 13:18:09 +01:00
Joel Collins
9bddca6aaa
Removed excessive debug logging
2020-03-27 15:07:44 +00:00
Joel Collins
cf66359559
Reimplemented serialising LST
2020-02-06 13:35:05 +00:00
Joel Collins
9b4bf4c8fc
Moved status routes to instrument/state
2020-01-29 17:43:52 +00:00
Joel Collins
19af98736d
Draft of new semantics
2020-01-29 11:55:39 +00:00
jtc42
6df7fe9405
Blackened
2020-01-24 15:41:33 +00:00
jtc42
dfbef9c354
Fixed broken capture target
2020-01-24 15:39:44 +00:00
jtc42
36334ed743
Moved to a LabThings dependency for server
2020-01-17 15:13:32 +00:00
Joel Collins
4003e4e65c
Renamed devices to components
2020-01-13 11:08:05 +00:00
jtc42
a8a3cafa97
Restructured labthings
2019-12-21 12:10:09 +00:00
Joel Collins
15a6f13cd5
Blackened
2019-12-18 14:58:51 +00:00
Joel Collins
3db99fee2f
Enable stage coordinate zeroing
2019-11-29 14:09:23 +00:00
Joel Collins
abff27fd47
Ignore backlash in mock stage movements
2019-11-21 16:14:41 +00:00
Joel Collins
394ef15fbe
Fixed mock stage not moving
2019-11-21 16:05:26 +00:00
Joel Collins
52fb130379
Re-added timeout arguments
2019-11-20 16:06:34 +00:00
Joel Collins
b430a2d34a
Blackened
2019-11-20 14:13:01 +00:00
jtc42
a3ddaa69d3
Fixed ESI never timing out
2019-11-19 16:49:11 +00:00
jtc42
6581612312
Implemented root API v2 routes
2019-11-14 16:33:00 +00:00
Joel Collins
b81cfaf9e7
Converted all configs to JSON
2019-11-12 14:36:39 +00:00
Joel Collins
4e7606aa0c
Blackened files
2019-11-06 22:07:16 +00:00
Joel Collins
be5ddb76ae
Added simulated stage move delay
2019-11-04 12:09:31 +00:00
Joel Collins
0728b6fe08
Moved scans into base class
2019-11-04 12:09:23 +00:00