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 ScanImageImagingInterface #403

Merged
merged 3 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion guideGlobalMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"Spike2RecordingInterface",
"BrukerTiffSinglePlaneImagingInterface",
"BrukerTiffMultiPlaneImagingInterface",
"MicroManagerTiffImagingInterface"
"MicroManagerTiffImagingInterface",
"ScanImageImagingInterface"
]
}
33 changes: 33 additions & 0 deletions schemas/json/generated/ScanImageImagingInterface.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"required": [],
"properties": {
"ScanImageImagingInterface": {
"required": [
"file_path"
],
"properties": {
"file_path": {
"format": "file",
"type": "string",
"description": "Path to Tiff file."
},
"fallback_sampling_frequency": {
"type": "number"
},
"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 @@ -16,6 +16,7 @@ import Spike2RecordingInterfaceSchema from "../../../../../../schemas/json/gener
import BrukerTiffSinglePlaneImagingInterfaceSchema from "../../../../../../schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json";
import BrukerTiffMultiPlaneImagingInterfaceSchema from "../../../../../../schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json";
import MicroManagerTiffImagingInterfaceSchema from "../../../../../../schemas/json/generated/MicroManagerTiffImagingInterface.json";
import ScanImageImagingInterfaceSchema from "../../../../../../schemas/json/generated/ScanImageImagingInterface.json";

export default {
title: "Pages/Guided Mode/Source Data",
Expand Down Expand Up @@ -61,6 +62,8 @@ globalStateCopy.schema.source_data.properties.BrukerTiffMultiPlaneImagingInterfa
BrukerTiffMultiPlaneImagingInterfaceSchema.properties.BrukerTiffMultiPlaneImagingInterface;
globalStateCopy.schema.source_data.properties.MicroManagerTiffImagingInterface =
MicroManagerTiffImagingInterfaceSchema.properties.MicroManagerTiffImagingInterface;
globalStateCopy.schema.source_data.properties.ScanImageImagingInterface =
ScanImageImagingInterfaceSchema.properties.ScanImageImagingInterface;

const results = globalStateCopy.results;
for (let sub in results) {
Expand Down Expand Up @@ -175,3 +178,9 @@ const MicroManagerTiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(glo
MicroManagerTiffImagingInterfaceGlobalCopy.interfaces.interface = MicroManagerTiffImagingInterface;
MicroManagerTiffImagingInterfaceGlobalCopy.schema.source_data = MicroManagerTiffImagingInterfaceSchema;
MicroManagerTiffImagingInterface.args = { activePage, globalState: MicroManagerTiffImagingInterfaceGlobalCopy };

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