Update config files to use names not paths

This commit is contained in:
Julian Stirling 2025-12-14 13:06:42 +00:00
parent 5eea78cac7
commit a0b8a71477
3 changed files with 15 additions and 15 deletions

View file

@ -1,22 +1,22 @@
{ {
"things": { "things": {
"/camera/": { "camera": {
"class": "openflexure_microscope_server.things.camera.picamera:StreamingPiCamera2", "class": "openflexure_microscope_server.things.camera.picamera:StreamingPiCamera2",
"kwargs": { "kwargs": {
"camera_board": "picamera_v2" "camera_board": "picamera_v2"
} }
}, },
"/stage/": "openflexure_microscope_server.things.stage.sangaboard:SangaboardThing", "stage": "openflexure_microscope_server.things.stage.sangaboard:SangaboardThing",
"/autofocus/": "openflexure_microscope_server.things.autofocus:AutofocusThing", "autofocus": "openflexure_microscope_server.things.autofocus:AutofocusThing",
"/camera_stage_mapping/": "openflexure_microscope_server.things.camera_stage_mapping:CameraStageMapper", "camera_stage_mapping": "openflexure_microscope_server.things.camera_stage_mapping:CameraStageMapper",
"/system/": "openflexure_microscope_server.things.system:OpenFlexureSystem", "system": "openflexure_microscope_server.things.system:OpenFlexureSystem",
"/smart_scan/": { "smart_scan": {
"class": "openflexure_microscope_server.things.smart_scan:SmartScanThing", "class": "openflexure_microscope_server.things.smart_scan:SmartScanThing",
"kwargs": { "kwargs": {
"scans_folder": "/var/openflexure/scans/" "scans_folder": "/var/openflexure/scans/"
} }
}, },
"/stage_measure/":"openflexure_microscope_server.things.stage_measure:RangeofMotionThing" "stage_measure":"openflexure_microscope_server.things.stage_measure:RangeofMotionThing"
}, },
"settings_folder": "/var/openflexure/settings/", "settings_folder": "/var/openflexure/settings/",
"log_folder": "/var/openflexure/logs/" "log_folder": "/var/openflexure/logs/"

View file

@ -1,10 +1,10 @@
{ {
"things": { "things": {
"/camera/": { "camera": {
"class": "openflexure_microscope_server.things.camera.opencv:OpenCVCamera", "class": "openflexure_microscope_server.things.camera.opencv:OpenCVCamera",
"kwargs": {"camera_index": 0} "kwargs": {"camera_index": 0}
}, },
"/system/": "openflexure_microscope_server.things.system:OpenFlexureSystem" "system": "openflexure_microscope_server.things.system:OpenFlexureSystem"
}, },
"settings_folder": "./openflexure/settings/", "settings_folder": "./openflexure/settings/",
"log_folder": "./openflexure/logs/" "log_folder": "./openflexure/logs/"

View file

@ -1,11 +1,11 @@
{ {
"things": { "things": {
"/camera/": "openflexure_microscope_server.things.camera.simulation:SimulatedCamera", "camera": "openflexure_microscope_server.things.camera.simulation:SimulatedCamera",
"/stage/": "openflexure_microscope_server.things.stage.dummy:DummyStage", "stage": "openflexure_microscope_server.things.stage.dummy:DummyStage",
"/autofocus/": "openflexure_microscope_server.things.autofocus:AutofocusThing", "autofocus": "openflexure_microscope_server.things.autofocus:AutofocusThing",
"/camera_stage_mapping/": "openflexure_microscope_server.things.camera_stage_mapping:CameraStageMapper", "camera_stage_mapping": "openflexure_microscope_server.things.camera_stage_mapping:CameraStageMapper",
"/system/": "openflexure_microscope_server.things.system:OpenFlexureSystem", "system": "openflexure_microscope_server.things.system:OpenFlexureSystem",
"/smart_scan/": { "smart_scan": {
"class": "openflexure_microscope_server.things.smart_scan:SmartScanThing", "class": "openflexure_microscope_server.things.smart_scan:SmartScanThing",
"kwargs": { "kwargs": {
"scans_folder": "./openflexure/scans/" "scans_folder": "./openflexure/scans/"