Richard Bowman
8e50a90fb2
Explicitly mark arguments as optional
...
mypy now considers implicitly Optional arguments
to be errors - I have made them now explicitly
Optional, which passes.
2023-03-21 15:04:49 +00: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
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
4a9d1c5e3c
Removed default JSON files and submoduled JSON encoder class
2020-11-12 12:02:09 +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
Joel Collins
9f61935cf4
Updated LabThingsJSONEncoder import
2020-07-21 11:57:08 +01:00
Joel Collins
9646058c37
Code format
2020-04-28 13:20:38 +01:00
Joel Collins
abd291f1e0
Base OFM JSON encoder on LabThings encoder
2020-04-23 14:25:19 +01:00
Joel Collins
0182f18e33
Reverted config initialisation behaviour
2020-02-19 10:41:31 +00:00
Joel Collins
7209700343
Skeleton for autostorage extension
2020-02-18 11:40:14 +00:00
Joel Collins
e7d1f211bc
Removed forced string serialisation of objects
2020-01-30 14:20:40 +00:00
Joel Collins
9b4bf4c8fc
Moved status routes to instrument/state
2020-01-29 17:43:52 +00:00
Joel Collins
7458d278d8
Simplified new configuration and metadata
2020-01-29 15:36:57 +00:00
Joel Collins
19af98736d
Draft of new semantics
2020-01-29 11:55:39 +00:00
jtc42
e1d2e21bf6
Fixed paths (mutable files now all in /var/openflexure)
2020-01-24 15:41:14 +00:00
Joel Collins
feddcc546b
Changed preferred paths to use PROGRAMDATA, /var, and /etc
2020-01-16 16:31:19 +00:00
Joel Collins
802f5ba0c2
Started updating documentation
2020-01-15 15:03:58 +00:00
Joel Collins
6e46ab5891
Added default UUID serialisation
2020-01-14 15:05:50 +00:00
jtc42
585633020b
Automatically register all extensions in the extension directory (without explicit init import)
2020-01-05 20:02:22 +00:00
jtc42
2a245185a6
Renamed LabThing plugins to extensions
2020-01-05 18:56:46 +00:00
Joel Collins
15a6f13cd5
Blackened
2019-12-18 14:58:51 +00:00
Joel Collins
f972609e4c
Remove config contraction
2019-12-18 11:01:56 +00:00
Joel Collins
477abb6970
First draft of new API plugin system
2019-12-13 13:48:50 +00:00
Joel Collins
98d8993beb
JSON encode arbitrary objects as string representationa
2019-11-29 11:33:26 +00:00
jtc42
76af0891e9
Blackened
2019-11-15 16:52:57 +00:00
jtc42
6581612312
Implemented root API v2 routes
2019-11-14 16:33:00 +00:00
jtc42
b33ab7b22a
Moved to a module-level user_settings object
2019-11-12 17:14:30 +00:00
Joel Collins
b81cfaf9e7
Converted all configs to JSON
2019-11-12 14:36:39 +00:00
Joel Collins
e2c345b13d
Fixed serialising numpy ints
2019-11-11 10:45:09 +00:00
Joel Collins
5966ce29be
Blackened everything
2019-09-15 14:17:52 +01:00
Joel Collins
354524de64
Jsonify lens-shading as lists
2019-09-15 14:05:33 +01:00
Joel Collins
6581385ab9
Refactored JsonPayload to JsonResponse
2019-09-13 18:04:33 +01:00
Joel Collins
cc343e2a8c
Overhaul config module to only handle loading/saving
2019-06-05 16:03:42 +01:00
Joel Collins
5e6372835e
Added extra debug log
2019-06-04 14:02:53 +01:00
Joel Collins
3b9ef670fe
Improved flake8 results
2019-05-24 16:32:20 +01:00
Joel Collins
8c3cd48f4d
Automatically move old config file to new config file
2019-05-20 10:24:50 +01:00
Joel Collins
9fc4dfc628
Moved microscoperc.yaml to microscope_settings.yaml
2019-05-20 10:09:01 +01:00
Joel Collins
10bafe1281
Replace missing configs with empty dictionary
2019-04-08 08:08:30 +01:00
Joel Collins
ebce044fc2
Fixed issue 51
2019-03-28 11:47:56 +00:00
Joel Collins
1bbe234749
Fixed issue #42
2019-02-11 10:00:44 +00:00
Joel Collins
88b946b473
Improved runtime-config docs
2019-02-07 11:19:00 +00:00
Joel Collins
0948c9308a
Went on a PEP-8 rampage
2019-01-31 17:20:46 +00:00
Joel Collins
0fd0cd8bac
Option to read a JSON-safe version of config (type conversion and exclusion of lens shading data)
2019-01-31 16:47:26 +00:00
Joel Collins
e9d74c07e6
Separated updating/writing from saving config
2019-01-31 13:51:02 +00:00
Joel Collins
e5c10adf8d
Rewritten to remove config redundancy
2019-01-31 13:28:15 +00:00
Joel Collins
cd1e450a2b
Fixed massive bug in config contraction
2019-01-30 18:23:26 +00:00
Joel Collins
f2a3261b03
Overhauled config loader to allow split configs
2019-01-30 17:45:11 +00:00
Joel Collins
5fe83a902f
Clarified default config paths
2018-12-20 16:06:09 +00:00