Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MicroManagerTiffImagingInterface #399

Merged
merged 9 commits into from
Sep 29, 2023
3 changes: 2 additions & 1 deletion guideGlobalMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"CellExplorerSortingInterface",
"KiloSortSortingInterface",
"Spike2RecordingInterface",
"BrukerTiffSinglePlaneImagingInterface"
"BrukerTiffSinglePlaneImagingInterface",
"MicroManagerTiffImagingInterface"
]
}
30 changes: 30 additions & 0 deletions schemas/json/generated/MicroManagerTiffImagingInterface.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"required": [],
"properties": {
"MicroManagerTiffImagingInterface": {
"required": [
"folder_path"
],
"properties": {
"folder_path": {
"format": "directory",
"type": "string",
"description": "The path that points to the folder containing the OME-TIF image files."
},
"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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import CellExplorerSortingInterfaceSchema from "../../../../../../schemas/json/g
import KiloSortSortingInterfaceSchema from "../../../../../../schemas/json/generated/KiloSortSortingInterface.json";
import Spike2RecordingInterfaceSchema from "../../../../../../schemas/json/generated/Spike2RecordingInterface.json";
import BrukerTiffSinglePlaneImagingInterfaceSchema from "../../../../../../schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json";
import MicroManagerTiffImagingInterfaceSchema from "../../../../../../schemas/json/generated/MicroManagerTiffImagingInterface.json";

export default {
title: "Pages/Guided Mode/Source Data",
Expand Down Expand Up @@ -55,6 +56,8 @@ globalStateCopy.schema.source_data.properties.Spike2RecordingInterface =
Spike2RecordingInterfaceSchema.properties.Spike2RecordingInterface;
globalStateCopy.schema.source_data.properties.BrukerTiffSinglePlaneImagingInterface =
BrukerTiffSinglePlaneImagingInterfaceSchema.properties.BrukerTiffSinglePlaneImagingInterface;
globalStateCopy.schema.source_data.properties.MicroManagerTiffImagingInterface =
MicroManagerTiffImagingInterfaceSchema.properties.MicroManagerTiffImagingInterface;

const results = globalStateCopy.results;
for (let sub in results) {
Expand Down Expand Up @@ -157,3 +160,9 @@ BrukerTiffSinglePlaneImagingInterface.args = {
activePage,
globalState: BrukerTiffSinglePlaneImagingInterfaceGlobalCopy,
};

export const MicroManagerTiffImagingInterface = PageTemplate.bind({});
const MicroManagerTiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState));
MicroManagerTiffImagingInterfaceGlobalCopy.interfaces.interface = MicroManagerTiffImagingInterface;
MicroManagerTiffImagingInterfaceGlobalCopy.schema.source_data = MicroManagerTiffImagingInterfaceSchema;
MicroManagerTiffImagingInterface.args = { activePage, globalState: MicroManagerTiffImagingInterfaceGlobalCopy };
Loading