diff --git a/guideGlobalMetadata.json b/guideGlobalMetadata.json index 640a8c9c5..bd438fa29 100644 --- a/guideGlobalMetadata.json +++ b/guideGlobalMetadata.json @@ -27,6 +27,7 @@ "PlexonRecordingInterface", "PlexonSortingInterface", "AxonaRecordingInterface", - "NeuralynxRecordingInterface" + "NeuralynxRecordingInterface", + "AlphaOmegaRecordingInterface" ] } diff --git a/schemas/json/generated/AlphaOmegaRecordingInterface.json b/schemas/json/generated/AlphaOmegaRecordingInterface.json new file mode 100644 index 000000000..420bf7378 --- /dev/null +++ b/schemas/json/generated/AlphaOmegaRecordingInterface.json @@ -0,0 +1,33 @@ +{ + "required": [], + "properties": { + "AlphaOmegaRecordingInterface": { + "required": [ + "folder_path" + ], + "properties": { + "folder_path": { + "format": "directory", + "type": "string" + }, + "verbose": { + "type": "boolean", + "default": true + }, + "es_key": { + "type": "string", + "default": "ElectricalSeries" + } + }, + "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 002750aa9..a73053fb5 100644 --- a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js +++ b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js @@ -27,6 +27,7 @@ import PlexonRecordingInterfaceSchema from "../../../../../../schemas/json/gener import PlexonSortingInterfaceSchema from "../../../../../../schemas/json/generated/PlexonSortingInterface.json"; import AxonaRecordingInterfaceSchema from "../../../../../../schemas/json/generated/AxonaRecordingInterface.json"; import NeuralynxRecordingInterfaceSchema from "../../../../../../schemas/json/generated/NeuralynxRecordingInterface.json"; +import AlphaOmegaRecordingInterfaceSchema from "../../../../../../schemas/json/generated/AlphaOmegaRecordingInterface.json"; export default { title: "Pages/Guided Mode/Source Data", @@ -94,6 +95,8 @@ globalStateCopy.schema.source_data.properties.AxonaRecordingInterface = AxonaRecordingInterfaceSchema.properties.AxonaRecordingInterface; globalStateCopy.schema.source_data.properties.NeuralynxRecordingInterface = NeuralynxRecordingInterfaceSchema.properties.NeuralynxRecordingInterface; +globalStateCopy.schema.source_data.properties.AlphaOmegaRecordingInterface = + AlphaOmegaRecordingInterfaceSchema.properties.AlphaOmegaRecordingInterface; const results = globalStateCopy.results; for (let sub in results) { @@ -274,3 +277,9 @@ const NeuralynxRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalSt NeuralynxRecordingInterfaceGlobalCopy.interfaces.interface = NeuralynxRecordingInterface; NeuralynxRecordingInterfaceGlobalCopy.schema.source_data = NeuralynxRecordingInterfaceSchema; NeuralynxRecordingInterface.args = { activePage, globalState: NeuralynxRecordingInterfaceGlobalCopy }; + +export const AlphaOmegaRecordingInterface = PageTemplate.bind({}); +const AlphaOmegaRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +AlphaOmegaRecordingInterfaceGlobalCopy.interfaces.interface = AlphaOmegaRecordingInterface; +AlphaOmegaRecordingInterfaceGlobalCopy.schema.source_data = AlphaOmegaRecordingInterfaceSchema; +AlphaOmegaRecordingInterface.args = { activePage, globalState: AlphaOmegaRecordingInterfaceGlobalCopy };