Skip to content

Commit

Permalink
Merge pull request #415 from NeurodataWithoutBorders/MEArecRecordingI…
Browse files Browse the repository at this point in the history
…nterface

Add MEArecRecordingInterface
  • Loading branch information
CodyCBakerPhD authored Sep 29, 2023
2 parents dd3e3b4 + 710a27f commit f889c71
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
3 changes: 2 additions & 1 deletion guideGlobalMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"TiffImagingInterface",
"MiniscopeImagingInterface",
"SbxImagingInterface",
"MCSRawRecordingInterface"
"MCSRawRecordingInterface",
"MEArecRecordingInterface"
]
}
33 changes: 33 additions & 0 deletions schemas/json/generated/MEArecRecordingInterface.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"required": [],
"properties": {
"MEArecRecordingInterface": {
"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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import TiffImagingInterfaceSchema from "../../../../../../schemas/json/generated
import MiniscopeImagingInterfaceSchema from "../../../../../../schemas/json/generated/MiniscopeImagingInterface.json";
import SbxImagingInterfaceSchema from "../../../../../../schemas/json/generated/SbxImagingInterface.json";
import MCSRawRecordingInterfaceSchema from "../../../../../../schemas/json/generated/MCSRawRecordingInterface.json";
import MEArecRecordingInterfaceSchema from "../../../../../../schemas/json/generated/MEArecRecordingInterface.json";

export default {
title: "Pages/Guided Mode/Source Data",
Expand Down Expand Up @@ -76,6 +77,8 @@ globalStateCopy.schema.source_data.properties.SbxImagingInterface =
SbxImagingInterfaceSchema.properties.SbxImagingInterface;
globalStateCopy.schema.source_data.properties.MCSRawRecordingInterface =
MCSRawRecordingInterfaceSchema.properties.MCSRawRecordingInterface;
globalStateCopy.schema.source_data.properties.MEArecRecordingInterface =
MEArecRecordingInterfaceSchema.properties.MEArecRecordingInterface;

const results = globalStateCopy.results;
for (let sub in results) {
Expand Down Expand Up @@ -220,3 +223,9 @@ const MCSRawRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState
MCSRawRecordingInterfaceGlobalCopy.interfaces.interface = MCSRawRecordingInterface;
MCSRawRecordingInterfaceGlobalCopy.schema.source_data = MCSRawRecordingInterfaceSchema;
MCSRawRecordingInterface.args = { activePage, globalState: MCSRawRecordingInterfaceGlobalCopy };

export const MEArecRecordingInterface = PageTemplate.bind({});
const MEArecRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState));
MEArecRecordingInterfaceGlobalCopy.interfaces.interface = MEArecRecordingInterface;
MEArecRecordingInterfaceGlobalCopy.schema.source_data = MEArecRecordingInterfaceSchema;
MEArecRecordingInterface.args = { activePage, globalState: MEArecRecordingInterfaceGlobalCopy };

0 comments on commit f889c71

Please sign in to comment.