Skip to content

Commit

Permalink
Merge pull request #400 from NeurodataWithoutBorders/MiniscopeImaging…
Browse files Browse the repository at this point in the history
…Interface

Add MiniscopeImagingInterface
  • Loading branch information
CodyCBakerPhD authored Sep 29, 2023
2 parents fa5e971 + 374526b commit 07a91ae
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
3 changes: 2 additions & 1 deletion guideGlobalMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"BrukerTiffMultiPlaneImagingInterface",
"MicroManagerTiffImagingInterface",
"ScanImageImagingInterface",
"TiffImagingInterface"
"TiffImagingInterface",
"MiniscopeImagingInterface"
]
}
25 changes: 25 additions & 0 deletions schemas/json/generated/MiniscopeImagingInterface.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"required": [],
"properties": {
"MiniscopeImagingInterface": {
"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 @@ -18,6 +18,7 @@ import BrukerTiffMultiPlaneImagingInterfaceSchema from "../../../../../../schema
import MicroManagerTiffImagingInterfaceSchema from "../../../../../../schemas/json/generated/MicroManagerTiffImagingInterface.json";
import ScanImageImagingInterfaceSchema from "../../../../../../schemas/json/generated/ScanImageImagingInterface.json";
import TiffImagingInterfaceSchema from "../../../../../../schemas/json/generated/TiffImagingInterface.json";
import MiniscopeImagingInterfaceSchema from "../../../../../../schemas/json/generated/MiniscopeImagingInterface.json";

export default {
title: "Pages/Guided Mode/Source Data",
Expand Down Expand Up @@ -67,6 +68,8 @@ globalStateCopy.schema.source_data.properties.ScanImageImagingInterface =
ScanImageImagingInterfaceSchema.properties.ScanImageImagingInterface;
globalStateCopy.schema.source_data.properties.TiffImagingInterface =
TiffImagingInterfaceSchema.properties.TiffImagingInterface;
globalStateCopy.schema.source_data.properties.MiniscopeImagingInterface =
MiniscopeImagingInterfaceSchema.properties.MiniscopeImagingInterface;

const results = globalStateCopy.results;
for (let sub in results) {
Expand Down Expand Up @@ -193,3 +196,9 @@ const TiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState));
TiffImagingInterfaceGlobalCopy.interfaces.interface = TiffImagingInterface;
TiffImagingInterfaceGlobalCopy.schema.source_data = TiffImagingInterfaceSchema;
TiffImagingInterface.args = { activePage, globalState: TiffImagingInterfaceGlobalCopy };

export const MiniscopeImagingInterface = PageTemplate.bind({});
const MiniscopeImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState));
MiniscopeImagingInterfaceGlobalCopy.interfaces.interface = MiniscopeImagingInterface;
MiniscopeImagingInterfaceGlobalCopy.schema.source_data = MiniscopeImagingInterfaceSchema;
MiniscopeImagingInterface.args = { activePage, globalState: MiniscopeImagingInterfaceGlobalCopy };

0 comments on commit 07a91ae

Please sign in to comment.