Julian Stirling
98c023032c
Allow fonts to cache
2025-08-14 14:45:20 +01:00
jaknapper
025e6b1fba
Request no caching for static files like webapp
2025-08-12 18:47:02 +01:00
Julian Stirling
864ca91e5c
Add docstrings to all public package
2025-07-10 15:29:10 +01:00
Julian Stirling
14359e73bb
Add public method docstrings.
2025-07-10 15:12:28 +01:00
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
f51dae7b3a
Doc strings to imperative mood
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
Julian Stirling
16317bf94c
Merge branch 'fix-simulation' into 'v3'
...
Simulation fixes
See merge request openflexure/openflexure-microscope-server!279
2025-06-05 10:35:53 +00: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
jaknapper
efe2127afb
Mount scans to app on startup
2025-05-23 16:28:21 +01:00
Joe Knapper
a563c634a3
Update serve static files to serve correct directory and to add docstrings
2025-05-15 16:30:37 +00:00
jaknapper
d4b3508b77
Clean up of serve_static_files
2025-05-15 14:10:15 +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
aa49cfcba3
Search the package for static files
...
This isn't foolproof: a zipped package will break it.
If that's something we want to support, we might
need to extract the folder to a temp location.
2024-08-09 02:39:04 +01: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