diff --git a/guideGlobalMetadata.json b/guideGlobalMetadata.json index cd27361e2..92b7ed5a2 100644 --- a/guideGlobalMetadata.json +++ b/guideGlobalMetadata.json @@ -23,6 +23,8 @@ "SbxImagingInterface", "CaimanSegmentationInterface", "MCSRawRecordingInterface", - "MEArecRecordingInterface" + "MEArecRecordingInterface", + "PlexonRecordingInterface", + "PlexonSortingInterface" ] } diff --git a/schemas/json/generated/PlexonRecordingInterface.json b/schemas/json/generated/PlexonRecordingInterface.json new file mode 100644 index 000000000..98fbba824 --- /dev/null +++ b/schemas/json/generated/PlexonRecordingInterface.json @@ -0,0 +1,33 @@ +{ + "required": [], + "properties": { + "PlexonRecordingInterface": { + "required": [ + "file_path" + ], + "properties": { + "file_path": { + "format": "file", + "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/schemas/json/generated/PlexonSortingInterface.json b/schemas/json/generated/PlexonSortingInterface.json new file mode 100644 index 000000000..7d7963c40 --- /dev/null +++ b/schemas/json/generated/PlexonSortingInterface.json @@ -0,0 +1,29 @@ +{ + "required": [], + "properties": { + "PlexonSortingInterface": { + "required": [ + "file_path" + ], + "properties": { + "file_path": { + "format": "file", + "type": "string" + }, + "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 e668929eb..6ddc65a66 100644 --- a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js +++ b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js @@ -23,6 +23,8 @@ import SbxImagingInterfaceSchema from "../../../../../../schemas/json/generated/ import CaimanSegmentationInterfaceSchema from "../../../../../../schemas/json/generated/CaimanSegmentationInterface.json"; import MCSRawRecordingInterfaceSchema from "../../../../../../schemas/json/generated/MCSRawRecordingInterface.json"; import MEArecRecordingInterfaceSchema from "../../../../../../schemas/json/generated/MEArecRecordingInterface.json"; +import PlexonRecordingInterfaceSchema from "../../../../../../schemas/json/generated/PlexonRecordingInterface.json"; +import PlexonSortingInterfaceSchema from "../../../../../../schemas/json/generated/PlexonSortingInterface.json"; export default { title: "Pages/Guided Mode/Source Data", @@ -82,6 +84,10 @@ globalStateCopy.schema.source_data.properties.MCSRawRecordingInterface = MCSRawRecordingInterfaceSchema.properties.MCSRawRecordingInterface; globalStateCopy.schema.source_data.properties.MEArecRecordingInterface = MEArecRecordingInterfaceSchema.properties.MEArecRecordingInterface; +globalStateCopy.schema.source_data.properties.PlexonRecordingInterface = + PlexonRecordingInterfaceSchema.properties.PlexonRecordingInterface; +globalStateCopy.schema.source_data.properties.PlexonSortingInterface = + PlexonSortingInterfaceSchema.properties.PlexonSortingInterface; const results = globalStateCopy.results; for (let sub in results) { @@ -238,3 +244,15 @@ const MEArecRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState MEArecRecordingInterfaceGlobalCopy.interfaces.interface = MEArecRecordingInterface; MEArecRecordingInterfaceGlobalCopy.schema.source_data = MEArecRecordingInterfaceSchema; MEArecRecordingInterface.args = { activePage, globalState: MEArecRecordingInterfaceGlobalCopy }; + +export const PlexonRecordingInterface = PageTemplate.bind({}); +const PlexonRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +PlexonRecordingInterfaceGlobalCopy.interfaces.interface = PlexonRecordingInterface; +PlexonRecordingInterfaceGlobalCopy.schema.source_data = PlexonRecordingInterfaceSchema; +PlexonRecordingInterface.args = { activePage, globalState: PlexonRecordingInterfaceGlobalCopy }; + +export const PlexonSortingInterface = PageTemplate.bind({}); +const PlexonSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +PlexonSortingInterfaceGlobalCopy.interfaces.interface = PlexonSortingInterface; +PlexonSortingInterfaceGlobalCopy.schema.source_data = PlexonSortingInterfaceSchema; +PlexonSortingInterface.args = { activePage, globalState: PlexonSortingInterfaceGlobalCopy };