diff --git a/guideGlobalMetadata.json b/guideGlobalMetadata.json index 51969a839..34ed7afc6 100644 --- a/guideGlobalMetadata.json +++ b/guideGlobalMetadata.json @@ -16,6 +16,7 @@ "Spike2RecordingInterface", "BrukerTiffSinglePlaneImagingInterface", "BrukerTiffMultiPlaneImagingInterface", - "MicroManagerTiffImagingInterface" + "MicroManagerTiffImagingInterface", + "ScanImageImagingInterface" ] } diff --git a/schemas/json/generated/ScanImageImagingInterface.json b/schemas/json/generated/ScanImageImagingInterface.json new file mode 100644 index 000000000..71b3cb59a --- /dev/null +++ b/schemas/json/generated/ScanImageImagingInterface.json @@ -0,0 +1,33 @@ +{ + "required": [], + "properties": { + "ScanImageImagingInterface": { + "required": [ + "file_path" + ], + "properties": { + "file_path": { + "format": "file", + "type": "string", + "description": "Path to Tiff file." + }, + "fallback_sampling_frequency": { + "type": "number" + }, + "verbose": { + "type": "boolean", + "default": true + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "source.schema.json", + "title": "Source data schema", + "description": "Schema for the source data, files and directories", + "version": "0.1.0" +} diff --git a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js index 81f1d66c3..02289105c 100644 --- a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js +++ b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js @@ -16,6 +16,7 @@ import Spike2RecordingInterfaceSchema from "../../../../../../schemas/json/gener import BrukerTiffSinglePlaneImagingInterfaceSchema from "../../../../../../schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json"; import BrukerTiffMultiPlaneImagingInterfaceSchema from "../../../../../../schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json"; import MicroManagerTiffImagingInterfaceSchema from "../../../../../../schemas/json/generated/MicroManagerTiffImagingInterface.json"; +import ScanImageImagingInterfaceSchema from "../../../../../../schemas/json/generated/ScanImageImagingInterface.json"; export default { title: "Pages/Guided Mode/Source Data", @@ -61,6 +62,8 @@ globalStateCopy.schema.source_data.properties.BrukerTiffMultiPlaneImagingInterfa BrukerTiffMultiPlaneImagingInterfaceSchema.properties.BrukerTiffMultiPlaneImagingInterface; globalStateCopy.schema.source_data.properties.MicroManagerTiffImagingInterface = MicroManagerTiffImagingInterfaceSchema.properties.MicroManagerTiffImagingInterface; +globalStateCopy.schema.source_data.properties.ScanImageImagingInterface = + ScanImageImagingInterfaceSchema.properties.ScanImageImagingInterface; const results = globalStateCopy.results; for (let sub in results) { @@ -175,3 +178,9 @@ const MicroManagerTiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(glo MicroManagerTiffImagingInterfaceGlobalCopy.interfaces.interface = MicroManagerTiffImagingInterface; MicroManagerTiffImagingInterfaceGlobalCopy.schema.source_data = MicroManagerTiffImagingInterfaceSchema; MicroManagerTiffImagingInterface.args = { activePage, globalState: MicroManagerTiffImagingInterfaceGlobalCopy }; + +export const ScanImageImagingInterface = PageTemplate.bind({}); +const ScanImageImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +ScanImageImagingInterfaceGlobalCopy.interfaces.interface = ScanImageImagingInterface; +ScanImageImagingInterfaceGlobalCopy.schema.source_data = ScanImageImagingInterfaceSchema; +ScanImageImagingInterface.args = { activePage, globalState: ScanImageImagingInterfaceGlobalCopy };