Julian Stirling
864ca91e5c
Add docstrings to all public package
2025-07-10 15:29:10 +01:00
Julian Stirling
80beeea07b
Add punctuation to docstrings
2025-07-10 09:24:50 +01:00
Julian Stirling
35d47fe3ed
Starting docstring on the same lines as the quotations
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
cd6eaf7be7
Apply suggestions from code review of branch pass-portal-to-stop
2025-07-09 21:19:55 +00:00
Julian Stirling
d9fd54696a
Monkey patch Uvicorn's handle_exit function to stop streams
...
Before the uvicorn handle_exit function is called kill the camera
streams.
2025-07-09 16:53:08 +01:00
Julian Stirling
52a80ef66b
And adjust for new as lt import
2025-07-07 15:25:14 +01:00
Julian Stirling
cdf23bc403
Add a timeout when shutting down the server.
...
The browser needs to be closed for graceful shutdown. If the browser
is left open the microscope may never shut down as it is waiting on
the uvicorn process to finish. This causes potential SD card issues.
This forces the server to force shutdown if it doesn't exit gracefully in
2 seconds.
2025-06-19 16:25:43 -04:00
Julian Stirling
3a1c3bb026
Ensure server and config vars always defined before fallback server is started
2025-06-06 12:42:21 +01:00
Julian Stirling
b45f5651ab
Add scan directory to json config
2025-06-06 12:21:51 +01:00
Joe Knapper
c919f8a19f
Logging config based on default uvicorn settings
2025-06-03 14:48:13 +01:00
Julian Stirling
4ef74c42c3
Configure log folder in json file
2025-06-03 14:05:58 +01:00
Julian Stirling
3a47151694
Serve logfile and logs for UI seperately
2025-04-07 23:45:19 +01:00
Julian Stirling
dd0b30df51
Stop uvicorn.run disabling existing loggers
2025-04-06 15:26:39 +01:00
Richard Bowman
9fd8fc37f1
Formatted with Ruff
2024-12-03 06:46:08 +00:00
Richard Bowman
e3e248c46e
Move server config to a config file
...
Currently this is "just" a LabThings config file.
2024-08-09 01:51:11 +01:00
Richard Bowman
c32b44d1a6
Refactor server into submodule
2024-08-09 00:49:24 +01:00