Skip to content

Commit

Permalink
Merge branch 'main' into gray-requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD authored Oct 18, 2023
2 parents 56ccbe2 + 3e9d749 commit da48f31
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
4 changes: 3 additions & 1 deletion guideGlobalMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
"DeepLabCutInterface",
"SLEAPInterface",
"FicTracDataInterface",
"AudioInterface"
"AudioInterface",
"MiniscopeBehaviorInterface",
"EDFRecordingInterface"
]
}
25 changes: 25 additions & 0 deletions schemas/json/generated/MiniscopeBehaviorInterface.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"required": [],
"properties": {
"MiniscopeBehaviorInterface": {
"required": [
"folder_path"
],
"properties": {
"folder_path": {
"format": "directory",
"type": "string"
}
},
"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 @@ -34,6 +34,7 @@ import DeepLabCutInterfaceSchema from "../../../../../../schemas/json/generated/
import SLEAPInterfaceSchema from "../../../../../../schemas/json/generated/SLEAPInterface.json";
import FicTracDataInterfaceSchema from "../../../../../../schemas/json/generated/FicTracDataInterface.json";
import AudioInterfaceSchema from "../../../../../../schemas/json/generated/AudioInterface.json";
import MiniscopeBehaviorInterfaceSchema from "../../../../../../schemas/json/generated/MiniscopeBehaviorInterface.json";

export default {
title: "Pages/Guided Mode/Source Data",
Expand Down Expand Up @@ -113,6 +114,8 @@ globalStateCopy.schema.source_data.properties.SLEAPInterface = SLEAPInterfaceSch
globalStateCopy.schema.source_data.properties.FicTracDataInterface =
FicTracDataInterfaceSchema.properties.FicTracDataInterface;
globalStateCopy.schema.source_data.properties.AudioInterface = AudioInterfaceSchema.properties.AudioInterface;
globalStateCopy.schema.source_data.properties.MiniscopeBehaviorInterface =
MiniscopeBehaviorInterfaceSchema.properties.MiniscopeBehaviorInterface;

const results = globalStateCopy.results;
for (let sub in results) {
Expand Down Expand Up @@ -335,3 +338,9 @@ const AudioInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState));
AudioInterfaceGlobalCopy.interfaces.interface = AudioInterface;
AudioInterfaceGlobalCopy.schema.source_data = AudioInterfaceSchema;
AudioInterface.args = { activePage, globalState: AudioInterfaceGlobalCopy };

export const MiniscopeBehaviorInterface = PageTemplate.bind({});
const MiniscopeBehaviorInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState));
MiniscopeBehaviorInterfaceGlobalCopy.interfaces.interface = MiniscopeBehaviorInterface;
MiniscopeBehaviorInterfaceGlobalCopy.schema.source_data = MiniscopeBehaviorInterfaceSchema;
MiniscopeBehaviorInterface.args = { activePage, globalState: MiniscopeBehaviorInterfaceGlobalCopy };

0 comments on commit da48f31

Please sign in to comment.