diff --git a/guideGlobalMetadata.json b/guideGlobalMetadata.json index bfce304a0..456b86bee 100644 --- a/guideGlobalMetadata.json +++ b/guideGlobalMetadata.json @@ -20,6 +20,7 @@ "ScanImageImagingInterface", "TiffImagingInterface", "MiniscopeImagingInterface", - "SbxImagingInterface" + "SbxImagingInterface", + "Hdf5ImagingInterface" ] } diff --git a/schemas/json/generated/Hdf5ImagingInterface.json b/schemas/json/generated/Hdf5ImagingInterface.json new file mode 100644 index 000000000..750edab59 --- /dev/null +++ b/schemas/json/generated/Hdf5ImagingInterface.json @@ -0,0 +1,45 @@ +{ + "required": [], + "properties": { + "Hdf5ImagingInterface": { + "required": [ + "file_path" + ], + "properties": { + "file_path": { + "format": "file", + "type": "string" + }, + "mov_field": { + "type": "string", + "default": "mov" + }, + "sampling_frequency": { + "type": "number" + }, + "start_time": { + "type": "number" + }, + "metadata": { + "type": "object" + }, + "channel_names": { + "type": "array" + }, + "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 9ac3dd511..8093157fa 100644 --- a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js +++ b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js @@ -20,6 +20,7 @@ import ScanImageImagingInterfaceSchema from "../../../../../../schemas/json/gene import TiffImagingInterfaceSchema from "../../../../../../schemas/json/generated/TiffImagingInterface.json"; import MiniscopeImagingInterfaceSchema from "../../../../../../schemas/json/generated/MiniscopeImagingInterface.json"; import SbxImagingInterfaceSchema from "../../../../../../schemas/json/generated/SbxImagingInterface.json"; +import Hdf5ImagingInterfaceSchema from "../../../../../../schemas/json/generated/Hdf5ImagingInterface.json"; export default { title: "Pages/Guided Mode/Source Data", @@ -73,6 +74,8 @@ globalStateCopy.schema.source_data.properties.MiniscopeImagingInterface = MiniscopeImagingInterfaceSchema.properties.MiniscopeImagingInterface; globalStateCopy.schema.source_data.properties.SbxImagingInterface = SbxImagingInterfaceSchema.properties.SbxImagingInterface; +globalStateCopy.schema.source_data.properties.Hdf5ImagingInterface = + Hdf5ImagingInterfaceSchema.properties.Hdf5ImagingInterface; const results = globalStateCopy.results; for (let sub in results) { @@ -211,3 +214,9 @@ const SbxImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); SbxImagingInterfaceGlobalCopy.interfaces.interface = SbxImagingInterface; SbxImagingInterfaceGlobalCopy.schema.source_data = SbxImagingInterfaceSchema; SbxImagingInterface.args = { activePage, globalState: SbxImagingInterfaceGlobalCopy }; + +export const Hdf5ImagingInterface = PageTemplate.bind({}); +const Hdf5ImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +Hdf5ImagingInterfaceGlobalCopy.interfaces.interface = Hdf5ImagingInterface; +Hdf5ImagingInterfaceGlobalCopy.schema.source_data = Hdf5ImagingInterfaceSchema; +Hdf5ImagingInterface.args = { activePage, globalState: Hdf5ImagingInterfaceGlobalCopy };