Skip to content

Commit

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

Add ScanImageImagingInterface
  • Loading branch information
CodyCBakerPhD authored Sep 29, 2023
2 parents d60cbaa + f95ab34 commit e80a15f
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 @@ -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 };

0 comments on commit e80a15f

Please sign in to comment.