From eac0ec0531611061f7761d5549c678ce3d066f1f Mon Sep 17 00:00:00 2001 From: Garrett Date: Fri, 29 Sep 2023 12:14:41 -0700 Subject: [PATCH 01/10] Ensure server shutdown without multithreading --- pyflask/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyflask/app.py b/pyflask/app.py index edd60db62..01066cb34 100644 --- a/pyflask/app.py +++ b/pyflask/app.py @@ -2,7 +2,8 @@ import sys import json import multiprocessing -from os.path import sep +from os import kill, getpid +from signal import SIGINT from logging import Formatter, DEBUG from logging.handlers import RotatingFileHandler from pathlib import Path @@ -96,7 +97,7 @@ def get(self): api.logger.info("Shutting down server") if func is None: - print("Not running with the Werkzeug Server") + kill(getpid(), SIGINT) return func() From e2bdb6dbf7e436496624c0a3d003c3305b6b78d4 Mon Sep 17 00:00:00 2001 From: Garrett Date: Fri, 29 Sep 2023 12:33:59 -0700 Subject: [PATCH 02/10] Fix auto format detection based on key --- src/renderer/src/stories/JSONSchemaInput.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/stories/JSONSchemaInput.js b/src/renderer/src/stories/JSONSchemaInput.js index 5fee127a5..f39afc4dd 100644 --- a/src/renderer/src/stories/JSONSchemaInput.js +++ b/src/renderer/src/stories/JSONSchemaInput.js @@ -11,8 +11,8 @@ import { Modal } from "./Modal"; import { capitalize } from "./forms/utils"; -const isFilesystemSelector = (format) => { - if (Array.isArray(format)) return format.map(isFilesystemSelector).every(Boolean) ? format : null; +const isFilesystemSelector = (name, format) => { + if (Array.isArray(format)) return format.map((f) => isFilesystemSelector(name, f)).every(Boolean) ? format : null; const matched = name.match(/(.+_)?(.+)_paths?/); if (!format && matched) format = matched[2] === "folder" ? "directory" : matched[2]; @@ -183,7 +183,7 @@ export class JSONSchemaInput extends LitElement { const itemSchema = this.form ? this.form.getSchema("items", info) : info["items"]; const isTable = itemSchema.type === "object"; - const fileSystemFormat = isFilesystemSelector(itemSchema.format); + const fileSystemFormat = isFilesystemSelector(name, itemSchema.format); if (fileSystemFormat) return createFilesystemSelector(fileSystemFormat); else if (isTable) { const tableMetadata = { @@ -305,7 +305,7 @@ export class JSONSchemaInput extends LitElement { @change=${(ev) => validateOnChange && this.#triggerValidation(name, ev.target, path)} />`; } else if (info.type === "string" || info.type === "number") { - const fileSystemFormat = isFilesystemSelector(info.format); + const fileSystemFormat = isFilesystemSelector(name, info.format); if (fileSystemFormat) return createFilesystemSelector(fileSystemFormat); // Handle long string formats else if (info.format === "long" || isArray) From ec31881bb568b9ead59ce8af24a8ac6996447b50 Mon Sep 17 00:00:00 2001 From: Garrett Date: Fri, 29 Sep 2023 12:43:48 -0700 Subject: [PATCH 03/10] Print out interface support --- src/renderer/src/stories/Search.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/stories/Search.js b/src/renderer/src/stories/Search.js index 947252203..07278ab43 100644 --- a/src/renderer/src/stories/Search.js +++ b/src/renderer/src/stories/Search.js @@ -111,7 +111,7 @@ export class Search extends LitElement { this.list.appendChild(slot); if (this.options) { - this.options + const unsupported = this.options .sort((a, b) => { if (a.label < b.label) return -1; if (a.label > b.label) return 1; @@ -122,7 +122,7 @@ export class Search extends LitElement { else if (a.disabled) return 1; else if (b.disabled) return -1; }) // Sort with the disabled options at the bottom - .forEach((option) => { + .filter((option) => { const li = document.createElement("li"); li.classList.add("option"); li.setAttribute("hidden", ""); @@ -142,7 +142,12 @@ export class Search extends LitElement { li.appendChild(keywords); this.list.appendChild(li); - }); + + return option.disabled + }).map(o => o.label); + + console.warn('Supported Interface Count:', this.options.length - unsupported.length) + console.warn('Unsupported Interfaces:', unsupported) } return html` From 7498dcf97c83beed99cbf20da6176c630a255261 Mon Sep 17 00:00:00 2001 From: Garrett Date: Fri, 29 Sep 2023 12:58:57 -0700 Subject: [PATCH 04/10] Improve search support message + ensure selected directories with dots are still valid --- src/renderer/src/stories/FileSystemSelector.js | 8 ++++---- src/renderer/src/stories/Search.js | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/renderer/src/stories/FileSystemSelector.js b/src/renderer/src/stories/FileSystemSelector.js index fc21050a9..8a2ffb725 100644 --- a/src/renderer/src/stories/FileSystemSelector.js +++ b/src/renderer/src/stories/FileSystemSelector.js @@ -131,12 +131,12 @@ export class FilesystemSelector extends LitElement { this.#onThrow("Incorrect filesystem object", `Please provide a ${this.type} instead.`); }; - #handleFiles = async (pathOrPaths) => { + #handleFiles = async (pathOrPaths, type) => { if (!pathOrPaths) this.#onThrow("No paths detected", `Unable to parse ${this.type} path${this.multiple ? "s" : ""}`); if (Array.isArray(pathOrPaths)) pathOrPaths.forEach(this.#checkType); - else this.#checkType(pathOrPaths); + else if (!type) this.#checkType(pathOrPaths); let resolvedValue = pathOrPaths; if (Array.isArray(resolvedValue) && !this.multiple) { @@ -160,7 +160,7 @@ export class FilesystemSelector extends LitElement { if (dialog) { const file = await this.#useElectronDialog(type); const path = file.filePath ?? file.filePaths?.[0]; - this.#handleFiles(path); + this.#handleFiles(path, type); } else { let handles = await (type === "directory" ? window.showDirectoryPicker() @@ -168,7 +168,7 @@ export class FilesystemSelector extends LitElement { ).catch((e) => this.#onCancel()); // Call using the same options const result = Array.isArray(handles) ? handles.map((o) => o.name) : handles.name; - this.#handleFiles(result); + this.#handleFiles(result, type); } } diff --git a/src/renderer/src/stories/Search.js b/src/renderer/src/stories/Search.js index 07278ab43..8148d5de1 100644 --- a/src/renderer/src/stories/Search.js +++ b/src/renderer/src/stories/Search.js @@ -144,10 +144,10 @@ export class Search extends LitElement { this.list.appendChild(li); return option.disabled - }).map(o => o.label); + }).map(o => o.value); - console.warn('Supported Interface Count:', this.options.length - unsupported.length) - console.warn('Unsupported Interfaces:', unsupported) + console.warn(`Enabled: ${this.options.length - unsupported.length}/${this.options.length}`) + console.warn('Disabled Options:', unsupported) } return html` From 2c8e9ee646afe63205a926b1ccfaa8b551f8c6e6 Mon Sep 17 00:00:00 2001 From: Garrett Date: Fri, 29 Sep 2023 13:17:37 -0700 Subject: [PATCH 05/10] Add MCSRawRecording --- guideGlobalMetadata.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guideGlobalMetadata.json b/guideGlobalMetadata.json index bfce304a0..a6defa32c 100644 --- a/guideGlobalMetadata.json +++ b/guideGlobalMetadata.json @@ -20,6 +20,7 @@ "ScanImageImagingInterface", "TiffImagingInterface", "MiniscopeImagingInterface", - "SbxImagingInterface" + "SbxImagingInterface", + "MCSRawRecordingInterface" ] } From 02c0a13743a46553dd7e0f546a77ddce813a9fb7 Mon Sep 17 00:00:00 2001 From: Garrett Date: Fri, 29 Sep 2023 13:17:41 -0700 Subject: [PATCH 06/10] Add stories --- .../generated/BiocamRecordingInterface.json | 2 +- .../BlackrockRecordingInterface.json | 2 +- .../generated/BlackrockSortingInterface.json | 2 +- .../BrukerTiffMultiPlaneImagingInterface.json | 2 +- ...BrukerTiffSinglePlaneImagingInterface.json | 2 +- .../CellExplorerSortingInterface.json | 2 +- .../generated/IntanRecordingInterface.json | 2 +- .../generated/KiloSortSortingInterface.json | 2 +- .../generated/MCSRawRecordingInterface.json | 33 +++ .../MicroManagerTiffImagingInterface.json | 2 +- .../generated/MiniscopeImagingInterface.json | 2 +- .../generated/NeuroScopeLFPInterface.json | 2 +- .../NeuroScopeRecordingInterface.json | 2 +- .../generated/NeuroScopeSortingInterface.json | 2 +- .../OpenEphysRecordingInterface.json | 2 +- .../json/generated/PhySortingInterface.json | 2 +- .../json/generated/SbxImagingInterface.json | 2 +- .../generated/ScanImageImagingInterface.json | 2 +- .../generated/Spike2RecordingInterface.json | 2 +- .../json/generated/SpikeGLXNIDQInterface.json | 2 +- .../generated/SpikeGLXRecordingInterface.json | 2 +- .../json/generated/TiffImagingInterface.json | 2 +- .../pages/guided-mode/SourceData.stories.js | 264 +++++++++--------- 23 files changed, 179 insertions(+), 160 deletions(-) create mode 100644 schemas/json/generated/MCSRawRecordingInterface.json diff --git a/schemas/json/generated/BiocamRecordingInterface.json b/schemas/json/generated/BiocamRecordingInterface.json index 8d51c7b06..3265fe263 100644 --- a/schemas/json/generated/BiocamRecordingInterface.json +++ b/schemas/json/generated/BiocamRecordingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/BlackrockRecordingInterface.json b/schemas/json/generated/BlackrockRecordingInterface.json index 25190ebf2..32de2a224 100644 --- a/schemas/json/generated/BlackrockRecordingInterface.json +++ b/schemas/json/generated/BlackrockRecordingInterface.json @@ -35,4 +35,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/BlackrockSortingInterface.json b/schemas/json/generated/BlackrockSortingInterface.json index 02661e794..1b0b34068 100644 --- a/schemas/json/generated/BlackrockSortingInterface.json +++ b/schemas/json/generated/BlackrockSortingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json b/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json index a4383d177..7ebe1b31e 100644 --- a/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json +++ b/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json b/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json index 844834ff9..50cea61c2 100644 --- a/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json +++ b/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/CellExplorerSortingInterface.json b/schemas/json/generated/CellExplorerSortingInterface.json index c51a65d4e..e2cc689b1 100644 --- a/schemas/json/generated/CellExplorerSortingInterface.json +++ b/schemas/json/generated/CellExplorerSortingInterface.json @@ -26,4 +26,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/IntanRecordingInterface.json b/schemas/json/generated/IntanRecordingInterface.json index 07904ada2..b75b39eda 100644 --- a/schemas/json/generated/IntanRecordingInterface.json +++ b/schemas/json/generated/IntanRecordingInterface.json @@ -34,4 +34,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/KiloSortSortingInterface.json b/schemas/json/generated/KiloSortSortingInterface.json index a31d22b75..5ef66d490 100644 --- a/schemas/json/generated/KiloSortSortingInterface.json +++ b/schemas/json/generated/KiloSortSortingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/MCSRawRecordingInterface.json b/schemas/json/generated/MCSRawRecordingInterface.json new file mode 100644 index 000000000..beed45512 --- /dev/null +++ b/schemas/json/generated/MCSRawRecordingInterface.json @@ -0,0 +1,33 @@ +{ + "required": [], + "properties": { + "MCSRawRecordingInterface": { + "required": [ + "file_path" + ], + "properties": { + "file_path": { + "format": "file", + "type": "string" + }, + "verbose": { + "type": "boolean", + "default": true + }, + "es_key": { + "type": "string", + "default": "ElectricalSeries" + } + }, + "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" +} \ No newline at end of file diff --git a/schemas/json/generated/MicroManagerTiffImagingInterface.json b/schemas/json/generated/MicroManagerTiffImagingInterface.json index fb0cd8876..218c8c281 100644 --- a/schemas/json/generated/MicroManagerTiffImagingInterface.json +++ b/schemas/json/generated/MicroManagerTiffImagingInterface.json @@ -27,4 +27,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/MiniscopeImagingInterface.json b/schemas/json/generated/MiniscopeImagingInterface.json index 33171beb5..d73ea0721 100644 --- a/schemas/json/generated/MiniscopeImagingInterface.json +++ b/schemas/json/generated/MiniscopeImagingInterface.json @@ -22,4 +22,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/NeuroScopeLFPInterface.json b/schemas/json/generated/NeuroScopeLFPInterface.json index d42a885ab..3c6224cf0 100644 --- a/schemas/json/generated/NeuroScopeLFPInterface.json +++ b/schemas/json/generated/NeuroScopeLFPInterface.json @@ -29,4 +29,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/NeuroScopeRecordingInterface.json b/schemas/json/generated/NeuroScopeRecordingInterface.json index 3e95a33d0..2077b287a 100644 --- a/schemas/json/generated/NeuroScopeRecordingInterface.json +++ b/schemas/json/generated/NeuroScopeRecordingInterface.json @@ -37,4 +37,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/NeuroScopeSortingInterface.json b/schemas/json/generated/NeuroScopeSortingInterface.json index 680fcbce9..fe3d76fe6 100644 --- a/schemas/json/generated/NeuroScopeSortingInterface.json +++ b/schemas/json/generated/NeuroScopeSortingInterface.json @@ -37,4 +37,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/OpenEphysRecordingInterface.json b/schemas/json/generated/OpenEphysRecordingInterface.json index f6193ea0c..f3affa4d3 100644 --- a/schemas/json/generated/OpenEphysRecordingInterface.json +++ b/schemas/json/generated/OpenEphysRecordingInterface.json @@ -33,4 +33,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/PhySortingInterface.json b/schemas/json/generated/PhySortingInterface.json index edcc2183d..182494ca2 100644 --- a/schemas/json/generated/PhySortingInterface.json +++ b/schemas/json/generated/PhySortingInterface.json @@ -29,4 +29,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/SbxImagingInterface.json b/schemas/json/generated/SbxImagingInterface.json index d02d2c0e7..8b97044b0 100644 --- a/schemas/json/generated/SbxImagingInterface.json +++ b/schemas/json/generated/SbxImagingInterface.json @@ -29,4 +29,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/ScanImageImagingInterface.json b/schemas/json/generated/ScanImageImagingInterface.json index 71b3cb59a..26925e9f5 100644 --- a/schemas/json/generated/ScanImageImagingInterface.json +++ b/schemas/json/generated/ScanImageImagingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/Spike2RecordingInterface.json b/schemas/json/generated/Spike2RecordingInterface.json index 81c785ad8..3b143bf75 100644 --- a/schemas/json/generated/Spike2RecordingInterface.json +++ b/schemas/json/generated/Spike2RecordingInterface.json @@ -31,4 +31,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/SpikeGLXNIDQInterface.json b/schemas/json/generated/SpikeGLXNIDQInterface.json index 14ad82eb8..8a38f1387 100644 --- a/schemas/json/generated/SpikeGLXNIDQInterface.json +++ b/schemas/json/generated/SpikeGLXNIDQInterface.json @@ -35,4 +35,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/SpikeGLXRecordingInterface.json b/schemas/json/generated/SpikeGLXRecordingInterface.json index 4b2034df8..603158605 100644 --- a/schemas/json/generated/SpikeGLXRecordingInterface.json +++ b/schemas/json/generated/SpikeGLXRecordingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/TiffImagingInterface.json b/schemas/json/generated/TiffImagingInterface.json index 036de528a..0cce7efa6 100644 --- a/schemas/json/generated/TiffImagingInterface.json +++ b/schemas/json/generated/TiffImagingInterface.json @@ -31,4 +31,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js index 9ac3dd511..279117e0d 100644 --- a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js +++ b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js @@ -1,213 +1,199 @@ import { globalState, PageTemplate } from "./storyStates"; -import SpikeGLXRecordingInterfaceSchema from "../../../../../../schemas/json/generated/SpikeGLXRecordingInterface.json"; -import SpikeGLXNIDQInterfaceSchema from "../../../../../../schemas/json/generated/SpikeGLXNIDQInterface.json"; -import PhySortingInterfaceSchema from "../../../../../../schemas/json/generated/PhySortingInterface.json"; -import NeuroScopeRecordingInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeRecordingInterface.json"; -import NeuroScopeLFPInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeLFPInterface.json"; -import NeuroScopeSortingInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeSortingInterface.json"; -import BiocamRecordingInterfaceSchema from "../../../../../../schemas/json/generated/BiocamRecordingInterface.json"; -import IntanRecordingInterfaceSchema from "../../../../../../schemas/json/generated/IntanRecordingInterface.json"; -import OpenEphysRecordingInterfaceSchema from "../../../../../../schemas/json/generated/OpenEphysRecordingInterface.json"; -import BlackrockRecordingInterfaceSchema from "../../../../../../schemas/json/generated/BlackrockRecordingInterface.json"; -import BlackrockSortingInterfaceSchema from "../../../../../../schemas/json/generated/BlackrockSortingInterface.json"; -import CellExplorerSortingInterfaceSchema from "../../../../../../schemas/json/generated/CellExplorerSortingInterface.json"; -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 BrukerTiffMultiPlaneImagingInterfaceSchema from "../../../../../../schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json"; -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"; -import SbxImagingInterfaceSchema from "../../../../../../schemas/json/generated/SbxImagingInterface.json"; +import SpikeGLXRecordingInterfaceSchema from '../../../../../../schemas/json/generated/SpikeGLXRecordingInterface.json' +import SpikeGLXNIDQInterfaceSchema from '../../../../../../schemas/json/generated/SpikeGLXNIDQInterface.json' +import PhySortingInterfaceSchema from '../../../../../../schemas/json/generated/PhySortingInterface.json' +import NeuroScopeRecordingInterfaceSchema from '../../../../../../schemas/json/generated/NeuroScopeRecordingInterface.json' +import NeuroScopeLFPInterfaceSchema from '../../../../../../schemas/json/generated/NeuroScopeLFPInterface.json' +import NeuroScopeSortingInterfaceSchema from '../../../../../../schemas/json/generated/NeuroScopeSortingInterface.json' +import BiocamRecordingInterfaceSchema from '../../../../../../schemas/json/generated/BiocamRecordingInterface.json' +import IntanRecordingInterfaceSchema from '../../../../../../schemas/json/generated/IntanRecordingInterface.json' +import OpenEphysRecordingInterfaceSchema from '../../../../../../schemas/json/generated/OpenEphysRecordingInterface.json' +import BlackrockRecordingInterfaceSchema from '../../../../../../schemas/json/generated/BlackrockRecordingInterface.json' +import BlackrockSortingInterfaceSchema from '../../../../../../schemas/json/generated/BlackrockSortingInterface.json' +import CellExplorerSortingInterfaceSchema from '../../../../../../schemas/json/generated/CellExplorerSortingInterface.json' +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 BrukerTiffMultiPlaneImagingInterfaceSchema from '../../../../../../schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json' +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' +import SbxImagingInterfaceSchema from '../../../../../../schemas/json/generated/SbxImagingInterface.json' +import MCSRawRecordingInterfaceSchema from '../../../../../../schemas/json/generated/MCSRawRecordingInterface.json' export default { title: "Pages/Guided Mode/Source Data", parameters: { chromatic: { disableSnapshot: false }, - }, + } }; -const activePage = "conversion/sourcedata"; - -const globalStateCopy = JSON.parse(JSON.stringify(globalState)); -globalStateCopy.schema.source_data.properties.SpikeGLXRecordingInterface = - SpikeGLXRecordingInterfaceSchema.properties.SpikeGLXRecordingInterface; -globalStateCopy.schema.source_data.properties.SpikeGLXNIDQInterface = - SpikeGLXNIDQInterfaceSchema.properties.SpikeGLXNIDQInterface; -globalStateCopy.schema.source_data.properties.PhySortingInterface = - PhySortingInterfaceSchema.properties.PhySortingInterface; -globalStateCopy.schema.source_data.properties.NeuroScopeRecordingInterface = - NeuroScopeRecordingInterfaceSchema.properties.NeuroScopeRecordingInterface; -globalStateCopy.schema.source_data.properties.NeuroScopeLFPInterface = - NeuroScopeLFPInterfaceSchema.properties.NeuroScopeLFPInterface; -globalStateCopy.schema.source_data.properties.NeuroScopeSortingInterface = - NeuroScopeSortingInterfaceSchema.properties.NeuroScopeSortingInterface; -globalStateCopy.schema.source_data.properties.BiocamRecordingInterface = - BiocamRecordingInterfaceSchema.properties.BiocamRecordingInterface; -globalStateCopy.schema.source_data.properties.IntanRecordingInterface = - IntanRecordingInterfaceSchema.properties.IntanRecordingInterface; -globalStateCopy.schema.source_data.properties.OpenEphysRecordingInterface = - OpenEphysRecordingInterfaceSchema.properties.OpenEphysRecordingInterface; -globalStateCopy.schema.source_data.properties.BlackrockRecordingInterface = - BlackrockRecordingInterfaceSchema.properties.BlackrockRecordingInterface; -globalStateCopy.schema.source_data.properties.BlackrockSortingInterface = - BlackrockSortingInterfaceSchema.properties.BlackrockSortingInterface; -globalStateCopy.schema.source_data.properties.CellExplorerSortingInterface = - CellExplorerSortingInterfaceSchema.properties.CellExplorerSortingInterface; -globalStateCopy.schema.source_data.properties.KiloSortSortingInterface = - KiloSortSortingInterfaceSchema.properties.KiloSortSortingInterface; -globalStateCopy.schema.source_data.properties.Spike2RecordingInterface = - Spike2RecordingInterfaceSchema.properties.Spike2RecordingInterface; -globalStateCopy.schema.source_data.properties.BrukerTiffSinglePlaneImagingInterface = - BrukerTiffSinglePlaneImagingInterfaceSchema.properties.BrukerTiffSinglePlaneImagingInterface; -globalStateCopy.schema.source_data.properties.BrukerTiffMultiPlaneImagingInterface = - BrukerTiffMultiPlaneImagingInterfaceSchema.properties.BrukerTiffMultiPlaneImagingInterface; -globalStateCopy.schema.source_data.properties.MicroManagerTiffImagingInterface = - MicroManagerTiffImagingInterfaceSchema.properties.MicroManagerTiffImagingInterface; -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; -globalStateCopy.schema.source_data.properties.SbxImagingInterface = - SbxImagingInterfaceSchema.properties.SbxImagingInterface; - -const results = globalStateCopy.results; -for (let sub in results) { - for (let ses in results[sub]) - results[sub][ses].source_data = { SpikeGLXNIDQInterface: { file_path: "/dummy/file/path" } }; +const activePage = "conversion/sourcedata" + + +const globalStateCopy = JSON.parse(JSON.stringify(globalState)) +globalStateCopy.schema.source_data.properties.SpikeGLXRecordingInterface = SpikeGLXRecordingInterfaceSchema.properties.SpikeGLXRecordingInterface +globalStateCopy.schema.source_data.properties.SpikeGLXNIDQInterface = SpikeGLXNIDQInterfaceSchema.properties.SpikeGLXNIDQInterface +globalStateCopy.schema.source_data.properties.PhySortingInterface = PhySortingInterfaceSchema.properties.PhySortingInterface +globalStateCopy.schema.source_data.properties.NeuroScopeRecordingInterface = NeuroScopeRecordingInterfaceSchema.properties.NeuroScopeRecordingInterface +globalStateCopy.schema.source_data.properties.NeuroScopeLFPInterface = NeuroScopeLFPInterfaceSchema.properties.NeuroScopeLFPInterface +globalStateCopy.schema.source_data.properties.NeuroScopeSortingInterface = NeuroScopeSortingInterfaceSchema.properties.NeuroScopeSortingInterface +globalStateCopy.schema.source_data.properties.BiocamRecordingInterface = BiocamRecordingInterfaceSchema.properties.BiocamRecordingInterface +globalStateCopy.schema.source_data.properties.IntanRecordingInterface = IntanRecordingInterfaceSchema.properties.IntanRecordingInterface +globalStateCopy.schema.source_data.properties.OpenEphysRecordingInterface = OpenEphysRecordingInterfaceSchema.properties.OpenEphysRecordingInterface +globalStateCopy.schema.source_data.properties.BlackrockRecordingInterface = BlackrockRecordingInterfaceSchema.properties.BlackrockRecordingInterface +globalStateCopy.schema.source_data.properties.BlackrockSortingInterface = BlackrockSortingInterfaceSchema.properties.BlackrockSortingInterface +globalStateCopy.schema.source_data.properties.CellExplorerSortingInterface = CellExplorerSortingInterfaceSchema.properties.CellExplorerSortingInterface +globalStateCopy.schema.source_data.properties.KiloSortSortingInterface = KiloSortSortingInterfaceSchema.properties.KiloSortSortingInterface +globalStateCopy.schema.source_data.properties.Spike2RecordingInterface = Spike2RecordingInterfaceSchema.properties.Spike2RecordingInterface +globalStateCopy.schema.source_data.properties.BrukerTiffSinglePlaneImagingInterface = BrukerTiffSinglePlaneImagingInterfaceSchema.properties.BrukerTiffSinglePlaneImagingInterface +globalStateCopy.schema.source_data.properties.BrukerTiffMultiPlaneImagingInterface = BrukerTiffMultiPlaneImagingInterfaceSchema.properties.BrukerTiffMultiPlaneImagingInterface +globalStateCopy.schema.source_data.properties.MicroManagerTiffImagingInterface = MicroManagerTiffImagingInterfaceSchema.properties.MicroManagerTiffImagingInterface +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 +globalStateCopy.schema.source_data.properties.SbxImagingInterface = SbxImagingInterfaceSchema.properties.SbxImagingInterface +globalStateCopy.schema.source_data.properties.MCSRawRecordingInterface = MCSRawRecordingInterfaceSchema.properties.MCSRawRecordingInterface + +const results = globalStateCopy.results +for (let sub in results){ + for (let ses in results[sub]) results[sub][ses].source_data = {SpikeGLXNIDQInterface: {file_path: '/dummy/file/path'}} } + export const All = PageTemplate.bind({}); All.args = { activePage, globalState: globalStateCopy }; export const SpikeGLXRecordingInterface = PageTemplate.bind({}); -const SpikeGLXRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -SpikeGLXRecordingInterfaceGlobalCopy.interfaces.interface = SpikeGLXRecordingInterface; -SpikeGLXRecordingInterfaceGlobalCopy.schema.source_data = SpikeGLXRecordingInterfaceSchema; +const SpikeGLXRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +SpikeGLXRecordingInterfaceGlobalCopy.interfaces.interface = SpikeGLXRecordingInterface +SpikeGLXRecordingInterfaceGlobalCopy.schema.source_data = SpikeGLXRecordingInterfaceSchema SpikeGLXRecordingInterface.args = { activePage, globalState: SpikeGLXRecordingInterfaceGlobalCopy }; export const SpikeGLXNIDQInterface = PageTemplate.bind({}); -const SpikeGLXNIDQInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -SpikeGLXNIDQInterfaceGlobalCopy.interfaces.interface = SpikeGLXNIDQInterface; -SpikeGLXNIDQInterfaceGlobalCopy.schema.source_data = SpikeGLXNIDQInterfaceSchema; +const SpikeGLXNIDQInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +SpikeGLXNIDQInterfaceGlobalCopy.interfaces.interface = SpikeGLXNIDQInterface +SpikeGLXNIDQInterfaceGlobalCopy.schema.source_data = SpikeGLXNIDQInterfaceSchema SpikeGLXNIDQInterface.args = { activePage, globalState: SpikeGLXNIDQInterfaceGlobalCopy }; export const PhySortingInterface = PageTemplate.bind({}); -const PhySortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -PhySortingInterfaceGlobalCopy.interfaces.interface = PhySortingInterface; -PhySortingInterfaceGlobalCopy.schema.source_data = PhySortingInterfaceSchema; +const PhySortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +PhySortingInterfaceGlobalCopy.interfaces.interface = PhySortingInterface +PhySortingInterfaceGlobalCopy.schema.source_data = PhySortingInterfaceSchema PhySortingInterface.args = { activePage, globalState: PhySortingInterfaceGlobalCopy }; export const NeuroScopeRecordingInterface = PageTemplate.bind({}); -const NeuroScopeRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -NeuroScopeRecordingInterfaceGlobalCopy.interfaces.interface = NeuroScopeRecordingInterface; -NeuroScopeRecordingInterfaceGlobalCopy.schema.source_data = NeuroScopeRecordingInterfaceSchema; +const NeuroScopeRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +NeuroScopeRecordingInterfaceGlobalCopy.interfaces.interface = NeuroScopeRecordingInterface +NeuroScopeRecordingInterfaceGlobalCopy.schema.source_data = NeuroScopeRecordingInterfaceSchema NeuroScopeRecordingInterface.args = { activePage, globalState: NeuroScopeRecordingInterfaceGlobalCopy }; export const NeuroScopeLFPInterface = PageTemplate.bind({}); -const NeuroScopeLFPInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -NeuroScopeLFPInterfaceGlobalCopy.interfaces.interface = NeuroScopeLFPInterface; -NeuroScopeLFPInterfaceGlobalCopy.schema.source_data = NeuroScopeLFPInterfaceSchema; +const NeuroScopeLFPInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +NeuroScopeLFPInterfaceGlobalCopy.interfaces.interface = NeuroScopeLFPInterface +NeuroScopeLFPInterfaceGlobalCopy.schema.source_data = NeuroScopeLFPInterfaceSchema NeuroScopeLFPInterface.args = { activePage, globalState: NeuroScopeLFPInterfaceGlobalCopy }; export const NeuroScopeSortingInterface = PageTemplate.bind({}); -const NeuroScopeSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -NeuroScopeSortingInterfaceGlobalCopy.interfaces.interface = NeuroScopeSortingInterface; -NeuroScopeSortingInterfaceGlobalCopy.schema.source_data = NeuroScopeSortingInterfaceSchema; +const NeuroScopeSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +NeuroScopeSortingInterfaceGlobalCopy.interfaces.interface = NeuroScopeSortingInterface +NeuroScopeSortingInterfaceGlobalCopy.schema.source_data = NeuroScopeSortingInterfaceSchema NeuroScopeSortingInterface.args = { activePage, globalState: NeuroScopeSortingInterfaceGlobalCopy }; export const BiocamRecordingInterface = PageTemplate.bind({}); -const BiocamRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -BiocamRecordingInterfaceGlobalCopy.interfaces.interface = BiocamRecordingInterface; -BiocamRecordingInterfaceGlobalCopy.schema.source_data = BiocamRecordingInterfaceSchema; +const BiocamRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +BiocamRecordingInterfaceGlobalCopy.interfaces.interface = BiocamRecordingInterface +BiocamRecordingInterfaceGlobalCopy.schema.source_data = BiocamRecordingInterfaceSchema BiocamRecordingInterface.args = { activePage, globalState: BiocamRecordingInterfaceGlobalCopy }; export const IntanRecordingInterface = PageTemplate.bind({}); -const IntanRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -IntanRecordingInterfaceGlobalCopy.interfaces.interface = IntanRecordingInterface; -IntanRecordingInterfaceGlobalCopy.schema.source_data = IntanRecordingInterfaceSchema; +const IntanRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +IntanRecordingInterfaceGlobalCopy.interfaces.interface = IntanRecordingInterface +IntanRecordingInterfaceGlobalCopy.schema.source_data = IntanRecordingInterfaceSchema IntanRecordingInterface.args = { activePage, globalState: IntanRecordingInterfaceGlobalCopy }; export const OpenEphysRecordingInterface = PageTemplate.bind({}); -const OpenEphysRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -OpenEphysRecordingInterfaceGlobalCopy.interfaces.interface = OpenEphysRecordingInterface; -OpenEphysRecordingInterfaceGlobalCopy.schema.source_data = OpenEphysRecordingInterfaceSchema; +const OpenEphysRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +OpenEphysRecordingInterfaceGlobalCopy.interfaces.interface = OpenEphysRecordingInterface +OpenEphysRecordingInterfaceGlobalCopy.schema.source_data = OpenEphysRecordingInterfaceSchema OpenEphysRecordingInterface.args = { activePage, globalState: OpenEphysRecordingInterfaceGlobalCopy }; export const BlackrockRecordingInterface = PageTemplate.bind({}); -const BlackrockRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -BlackrockRecordingInterfaceGlobalCopy.interfaces.interface = BlackrockRecordingInterface; -BlackrockRecordingInterfaceGlobalCopy.schema.source_data = BlackrockRecordingInterfaceSchema; +const BlackrockRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +BlackrockRecordingInterfaceGlobalCopy.interfaces.interface = BlackrockRecordingInterface +BlackrockRecordingInterfaceGlobalCopy.schema.source_data = BlackrockRecordingInterfaceSchema BlackrockRecordingInterface.args = { activePage, globalState: BlackrockRecordingInterfaceGlobalCopy }; export const BlackrockSortingInterface = PageTemplate.bind({}); -const BlackrockSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -BlackrockSortingInterfaceGlobalCopy.interfaces.interface = BlackrockSortingInterface; -BlackrockSortingInterfaceGlobalCopy.schema.source_data = BlackrockSortingInterfaceSchema; +const BlackrockSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +BlackrockSortingInterfaceGlobalCopy.interfaces.interface = BlackrockSortingInterface +BlackrockSortingInterfaceGlobalCopy.schema.source_data = BlackrockSortingInterfaceSchema BlackrockSortingInterface.args = { activePage, globalState: BlackrockSortingInterfaceGlobalCopy }; export const CellExplorerSortingInterface = PageTemplate.bind({}); -const CellExplorerSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -CellExplorerSortingInterfaceGlobalCopy.interfaces.interface = CellExplorerSortingInterface; -CellExplorerSortingInterfaceGlobalCopy.schema.source_data = CellExplorerSortingInterfaceSchema; +const CellExplorerSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +CellExplorerSortingInterfaceGlobalCopy.interfaces.interface = CellExplorerSortingInterface +CellExplorerSortingInterfaceGlobalCopy.schema.source_data = CellExplorerSortingInterfaceSchema CellExplorerSortingInterface.args = { activePage, globalState: CellExplorerSortingInterfaceGlobalCopy }; export const KiloSortSortingInterface = PageTemplate.bind({}); -const KiloSortSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -KiloSortSortingInterfaceGlobalCopy.interfaces.interface = KiloSortSortingInterface; -KiloSortSortingInterfaceGlobalCopy.schema.source_data = KiloSortSortingInterfaceSchema; +const KiloSortSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +KiloSortSortingInterfaceGlobalCopy.interfaces.interface = KiloSortSortingInterface +KiloSortSortingInterfaceGlobalCopy.schema.source_data = KiloSortSortingInterfaceSchema KiloSortSortingInterface.args = { activePage, globalState: KiloSortSortingInterfaceGlobalCopy }; export const Spike2RecordingInterface = PageTemplate.bind({}); -const Spike2RecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -Spike2RecordingInterfaceGlobalCopy.interfaces.interface = Spike2RecordingInterface; -Spike2RecordingInterfaceGlobalCopy.schema.source_data = Spike2RecordingInterfaceSchema; +const Spike2RecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +Spike2RecordingInterfaceGlobalCopy.interfaces.interface = Spike2RecordingInterface +Spike2RecordingInterfaceGlobalCopy.schema.source_data = Spike2RecordingInterfaceSchema Spike2RecordingInterface.args = { activePage, globalState: Spike2RecordingInterfaceGlobalCopy }; export const BrukerTiffSinglePlaneImagingInterface = PageTemplate.bind({}); -const BrukerTiffSinglePlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffSinglePlaneImagingInterface; -BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffSinglePlaneImagingInterfaceSchema; -BrukerTiffSinglePlaneImagingInterface.args = { - activePage, - globalState: BrukerTiffSinglePlaneImagingInterfaceGlobalCopy, -}; +const BrukerTiffSinglePlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffSinglePlaneImagingInterface +BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffSinglePlaneImagingInterfaceSchema +BrukerTiffSinglePlaneImagingInterface.args = { activePage, globalState: BrukerTiffSinglePlaneImagingInterfaceGlobalCopy }; export const BrukerTiffMultiPlaneImagingInterface = PageTemplate.bind({}); -const BrukerTiffMultiPlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffMultiPlaneImagingInterface; -BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffMultiPlaneImagingInterfaceSchema; +const BrukerTiffMultiPlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffMultiPlaneImagingInterface +BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffMultiPlaneImagingInterfaceSchema BrukerTiffMultiPlaneImagingInterface.args = { activePage, globalState: BrukerTiffMultiPlaneImagingInterfaceGlobalCopy }; export const MicroManagerTiffImagingInterface = PageTemplate.bind({}); -const MicroManagerTiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -MicroManagerTiffImagingInterfaceGlobalCopy.interfaces.interface = MicroManagerTiffImagingInterface; -MicroManagerTiffImagingInterfaceGlobalCopy.schema.source_data = MicroManagerTiffImagingInterfaceSchema; +const MicroManagerTiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +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; +const ScanImageImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +ScanImageImagingInterfaceGlobalCopy.interfaces.interface = ScanImageImagingInterface +ScanImageImagingInterfaceGlobalCopy.schema.source_data = ScanImageImagingInterfaceSchema ScanImageImagingInterface.args = { activePage, globalState: ScanImageImagingInterfaceGlobalCopy }; export const TiffImagingInterface = PageTemplate.bind({}); -const TiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -TiffImagingInterfaceGlobalCopy.interfaces.interface = TiffImagingInterface; -TiffImagingInterfaceGlobalCopy.schema.source_data = TiffImagingInterfaceSchema; +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; +const MiniscopeImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +MiniscopeImagingInterfaceGlobalCopy.interfaces.interface = MiniscopeImagingInterface +MiniscopeImagingInterfaceGlobalCopy.schema.source_data = MiniscopeImagingInterfaceSchema MiniscopeImagingInterface.args = { activePage, globalState: MiniscopeImagingInterfaceGlobalCopy }; export const SbxImagingInterface = PageTemplate.bind({}); -const SbxImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -SbxImagingInterfaceGlobalCopy.interfaces.interface = SbxImagingInterface; -SbxImagingInterfaceGlobalCopy.schema.source_data = SbxImagingInterfaceSchema; +const SbxImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +SbxImagingInterfaceGlobalCopy.interfaces.interface = SbxImagingInterface +SbxImagingInterfaceGlobalCopy.schema.source_data = SbxImagingInterfaceSchema SbxImagingInterface.args = { activePage, globalState: SbxImagingInterfaceGlobalCopy }; + +export const MCSRawRecordingInterface = PageTemplate.bind({}); +const MCSRawRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +MCSRawRecordingInterfaceGlobalCopy.interfaces.interface = MCSRawRecordingInterface +MCSRawRecordingInterfaceGlobalCopy.schema.source_data = MCSRawRecordingInterfaceSchema +MCSRawRecordingInterface.args = { activePage, globalState: MCSRawRecordingInterfaceGlobalCopy }; + From 2a360be49362dbbc7076fa57f5ceefd13893425d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 29 Sep 2023 20:18:38 +0000 Subject: [PATCH 07/10] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../generated/BiocamRecordingInterface.json | 2 +- .../BlackrockRecordingInterface.json | 2 +- .../generated/BlackrockSortingInterface.json | 2 +- .../BrukerTiffMultiPlaneImagingInterface.json | 2 +- ...BrukerTiffSinglePlaneImagingInterface.json | 2 +- .../CellExplorerSortingInterface.json | 2 +- .../generated/IntanRecordingInterface.json | 2 +- .../generated/KiloSortSortingInterface.json | 2 +- .../generated/MCSRawRecordingInterface.json | 2 +- .../MicroManagerTiffImagingInterface.json | 2 +- .../generated/MiniscopeImagingInterface.json | 2 +- .../generated/NeuroScopeLFPInterface.json | 2 +- .../NeuroScopeRecordingInterface.json | 2 +- .../generated/NeuroScopeSortingInterface.json | 2 +- .../OpenEphysRecordingInterface.json | 2 +- .../json/generated/PhySortingInterface.json | 2 +- .../json/generated/SbxImagingInterface.json | 2 +- .../generated/ScanImageImagingInterface.json | 2 +- .../generated/Spike2RecordingInterface.json | 2 +- .../json/generated/SpikeGLXNIDQInterface.json | 2 +- .../generated/SpikeGLXRecordingInterface.json | 2 +- .../json/generated/TiffImagingInterface.json | 2 +- src/renderer/src/stories/Search.js | 9 +- .../pages/guided-mode/SourceData.stories.js | 267 ++++++++++-------- 24 files changed, 172 insertions(+), 148 deletions(-) diff --git a/schemas/json/generated/BiocamRecordingInterface.json b/schemas/json/generated/BiocamRecordingInterface.json index 3265fe263..8d51c7b06 100644 --- a/schemas/json/generated/BiocamRecordingInterface.json +++ b/schemas/json/generated/BiocamRecordingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/BlackrockRecordingInterface.json b/schemas/json/generated/BlackrockRecordingInterface.json index 32de2a224..25190ebf2 100644 --- a/schemas/json/generated/BlackrockRecordingInterface.json +++ b/schemas/json/generated/BlackrockRecordingInterface.json @@ -35,4 +35,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/BlackrockSortingInterface.json b/schemas/json/generated/BlackrockSortingInterface.json index 1b0b34068..02661e794 100644 --- a/schemas/json/generated/BlackrockSortingInterface.json +++ b/schemas/json/generated/BlackrockSortingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json b/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json index 7ebe1b31e..a4383d177 100644 --- a/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json +++ b/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json b/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json index 50cea61c2..844834ff9 100644 --- a/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json +++ b/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/CellExplorerSortingInterface.json b/schemas/json/generated/CellExplorerSortingInterface.json index e2cc689b1..c51a65d4e 100644 --- a/schemas/json/generated/CellExplorerSortingInterface.json +++ b/schemas/json/generated/CellExplorerSortingInterface.json @@ -26,4 +26,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/IntanRecordingInterface.json b/schemas/json/generated/IntanRecordingInterface.json index b75b39eda..07904ada2 100644 --- a/schemas/json/generated/IntanRecordingInterface.json +++ b/schemas/json/generated/IntanRecordingInterface.json @@ -34,4 +34,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/KiloSortSortingInterface.json b/schemas/json/generated/KiloSortSortingInterface.json index 5ef66d490..a31d22b75 100644 --- a/schemas/json/generated/KiloSortSortingInterface.json +++ b/schemas/json/generated/KiloSortSortingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/MCSRawRecordingInterface.json b/schemas/json/generated/MCSRawRecordingInterface.json index beed45512..872b4e85c 100644 --- a/schemas/json/generated/MCSRawRecordingInterface.json +++ b/schemas/json/generated/MCSRawRecordingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/MicroManagerTiffImagingInterface.json b/schemas/json/generated/MicroManagerTiffImagingInterface.json index 218c8c281..fb0cd8876 100644 --- a/schemas/json/generated/MicroManagerTiffImagingInterface.json +++ b/schemas/json/generated/MicroManagerTiffImagingInterface.json @@ -27,4 +27,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/MiniscopeImagingInterface.json b/schemas/json/generated/MiniscopeImagingInterface.json index d73ea0721..33171beb5 100644 --- a/schemas/json/generated/MiniscopeImagingInterface.json +++ b/schemas/json/generated/MiniscopeImagingInterface.json @@ -22,4 +22,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/NeuroScopeLFPInterface.json b/schemas/json/generated/NeuroScopeLFPInterface.json index 3c6224cf0..d42a885ab 100644 --- a/schemas/json/generated/NeuroScopeLFPInterface.json +++ b/schemas/json/generated/NeuroScopeLFPInterface.json @@ -29,4 +29,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/NeuroScopeRecordingInterface.json b/schemas/json/generated/NeuroScopeRecordingInterface.json index 2077b287a..3e95a33d0 100644 --- a/schemas/json/generated/NeuroScopeRecordingInterface.json +++ b/schemas/json/generated/NeuroScopeRecordingInterface.json @@ -37,4 +37,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/NeuroScopeSortingInterface.json b/schemas/json/generated/NeuroScopeSortingInterface.json index fe3d76fe6..680fcbce9 100644 --- a/schemas/json/generated/NeuroScopeSortingInterface.json +++ b/schemas/json/generated/NeuroScopeSortingInterface.json @@ -37,4 +37,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/OpenEphysRecordingInterface.json b/schemas/json/generated/OpenEphysRecordingInterface.json index f3affa4d3..f6193ea0c 100644 --- a/schemas/json/generated/OpenEphysRecordingInterface.json +++ b/schemas/json/generated/OpenEphysRecordingInterface.json @@ -33,4 +33,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/PhySortingInterface.json b/schemas/json/generated/PhySortingInterface.json index 182494ca2..edcc2183d 100644 --- a/schemas/json/generated/PhySortingInterface.json +++ b/schemas/json/generated/PhySortingInterface.json @@ -29,4 +29,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/SbxImagingInterface.json b/schemas/json/generated/SbxImagingInterface.json index 8b97044b0..d02d2c0e7 100644 --- a/schemas/json/generated/SbxImagingInterface.json +++ b/schemas/json/generated/SbxImagingInterface.json @@ -29,4 +29,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/ScanImageImagingInterface.json b/schemas/json/generated/ScanImageImagingInterface.json index 26925e9f5..71b3cb59a 100644 --- a/schemas/json/generated/ScanImageImagingInterface.json +++ b/schemas/json/generated/ScanImageImagingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/Spike2RecordingInterface.json b/schemas/json/generated/Spike2RecordingInterface.json index 3b143bf75..81c785ad8 100644 --- a/schemas/json/generated/Spike2RecordingInterface.json +++ b/schemas/json/generated/Spike2RecordingInterface.json @@ -31,4 +31,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/SpikeGLXNIDQInterface.json b/schemas/json/generated/SpikeGLXNIDQInterface.json index 8a38f1387..14ad82eb8 100644 --- a/schemas/json/generated/SpikeGLXNIDQInterface.json +++ b/schemas/json/generated/SpikeGLXNIDQInterface.json @@ -35,4 +35,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/SpikeGLXRecordingInterface.json b/schemas/json/generated/SpikeGLXRecordingInterface.json index 603158605..4b2034df8 100644 --- a/schemas/json/generated/SpikeGLXRecordingInterface.json +++ b/schemas/json/generated/SpikeGLXRecordingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/TiffImagingInterface.json b/schemas/json/generated/TiffImagingInterface.json index 0cce7efa6..036de528a 100644 --- a/schemas/json/generated/TiffImagingInterface.json +++ b/schemas/json/generated/TiffImagingInterface.json @@ -31,4 +31,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/src/renderer/src/stories/Search.js b/src/renderer/src/stories/Search.js index 8148d5de1..9796b7195 100644 --- a/src/renderer/src/stories/Search.js +++ b/src/renderer/src/stories/Search.js @@ -143,11 +143,12 @@ export class Search extends LitElement { this.list.appendChild(li); - return option.disabled - }).map(o => o.value); + return option.disabled; + }) + .map((o) => o.value); - console.warn(`Enabled: ${this.options.length - unsupported.length}/${this.options.length}`) - console.warn('Disabled Options:', unsupported) + console.warn(`Enabled: ${this.options.length - unsupported.length}/${this.options.length}`); + console.warn("Disabled Options:", unsupported); } return html` diff --git a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js index 279117e0d..93e0c13e6 100644 --- a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js +++ b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js @@ -1,199 +1,222 @@ import { globalState, PageTemplate } from "./storyStates"; -import SpikeGLXRecordingInterfaceSchema from '../../../../../../schemas/json/generated/SpikeGLXRecordingInterface.json' -import SpikeGLXNIDQInterfaceSchema from '../../../../../../schemas/json/generated/SpikeGLXNIDQInterface.json' -import PhySortingInterfaceSchema from '../../../../../../schemas/json/generated/PhySortingInterface.json' -import NeuroScopeRecordingInterfaceSchema from '../../../../../../schemas/json/generated/NeuroScopeRecordingInterface.json' -import NeuroScopeLFPInterfaceSchema from '../../../../../../schemas/json/generated/NeuroScopeLFPInterface.json' -import NeuroScopeSortingInterfaceSchema from '../../../../../../schemas/json/generated/NeuroScopeSortingInterface.json' -import BiocamRecordingInterfaceSchema from '../../../../../../schemas/json/generated/BiocamRecordingInterface.json' -import IntanRecordingInterfaceSchema from '../../../../../../schemas/json/generated/IntanRecordingInterface.json' -import OpenEphysRecordingInterfaceSchema from '../../../../../../schemas/json/generated/OpenEphysRecordingInterface.json' -import BlackrockRecordingInterfaceSchema from '../../../../../../schemas/json/generated/BlackrockRecordingInterface.json' -import BlackrockSortingInterfaceSchema from '../../../../../../schemas/json/generated/BlackrockSortingInterface.json' -import CellExplorerSortingInterfaceSchema from '../../../../../../schemas/json/generated/CellExplorerSortingInterface.json' -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 BrukerTiffMultiPlaneImagingInterfaceSchema from '../../../../../../schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json' -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' -import SbxImagingInterfaceSchema from '../../../../../../schemas/json/generated/SbxImagingInterface.json' -import MCSRawRecordingInterfaceSchema from '../../../../../../schemas/json/generated/MCSRawRecordingInterface.json' +import SpikeGLXRecordingInterfaceSchema from "../../../../../../schemas/json/generated/SpikeGLXRecordingInterface.json"; +import SpikeGLXNIDQInterfaceSchema from "../../../../../../schemas/json/generated/SpikeGLXNIDQInterface.json"; +import PhySortingInterfaceSchema from "../../../../../../schemas/json/generated/PhySortingInterface.json"; +import NeuroScopeRecordingInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeRecordingInterface.json"; +import NeuroScopeLFPInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeLFPInterface.json"; +import NeuroScopeSortingInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeSortingInterface.json"; +import BiocamRecordingInterfaceSchema from "../../../../../../schemas/json/generated/BiocamRecordingInterface.json"; +import IntanRecordingInterfaceSchema from "../../../../../../schemas/json/generated/IntanRecordingInterface.json"; +import OpenEphysRecordingInterfaceSchema from "../../../../../../schemas/json/generated/OpenEphysRecordingInterface.json"; +import BlackrockRecordingInterfaceSchema from "../../../../../../schemas/json/generated/BlackrockRecordingInterface.json"; +import BlackrockSortingInterfaceSchema from "../../../../../../schemas/json/generated/BlackrockSortingInterface.json"; +import CellExplorerSortingInterfaceSchema from "../../../../../../schemas/json/generated/CellExplorerSortingInterface.json"; +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 BrukerTiffMultiPlaneImagingInterfaceSchema from "../../../../../../schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json"; +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"; +import SbxImagingInterfaceSchema from "../../../../../../schemas/json/generated/SbxImagingInterface.json"; +import MCSRawRecordingInterfaceSchema from "../../../../../../schemas/json/generated/MCSRawRecordingInterface.json"; export default { title: "Pages/Guided Mode/Source Data", parameters: { chromatic: { disableSnapshot: false }, - } + }, }; -const activePage = "conversion/sourcedata" - - -const globalStateCopy = JSON.parse(JSON.stringify(globalState)) -globalStateCopy.schema.source_data.properties.SpikeGLXRecordingInterface = SpikeGLXRecordingInterfaceSchema.properties.SpikeGLXRecordingInterface -globalStateCopy.schema.source_data.properties.SpikeGLXNIDQInterface = SpikeGLXNIDQInterfaceSchema.properties.SpikeGLXNIDQInterface -globalStateCopy.schema.source_data.properties.PhySortingInterface = PhySortingInterfaceSchema.properties.PhySortingInterface -globalStateCopy.schema.source_data.properties.NeuroScopeRecordingInterface = NeuroScopeRecordingInterfaceSchema.properties.NeuroScopeRecordingInterface -globalStateCopy.schema.source_data.properties.NeuroScopeLFPInterface = NeuroScopeLFPInterfaceSchema.properties.NeuroScopeLFPInterface -globalStateCopy.schema.source_data.properties.NeuroScopeSortingInterface = NeuroScopeSortingInterfaceSchema.properties.NeuroScopeSortingInterface -globalStateCopy.schema.source_data.properties.BiocamRecordingInterface = BiocamRecordingInterfaceSchema.properties.BiocamRecordingInterface -globalStateCopy.schema.source_data.properties.IntanRecordingInterface = IntanRecordingInterfaceSchema.properties.IntanRecordingInterface -globalStateCopy.schema.source_data.properties.OpenEphysRecordingInterface = OpenEphysRecordingInterfaceSchema.properties.OpenEphysRecordingInterface -globalStateCopy.schema.source_data.properties.BlackrockRecordingInterface = BlackrockRecordingInterfaceSchema.properties.BlackrockRecordingInterface -globalStateCopy.schema.source_data.properties.BlackrockSortingInterface = BlackrockSortingInterfaceSchema.properties.BlackrockSortingInterface -globalStateCopy.schema.source_data.properties.CellExplorerSortingInterface = CellExplorerSortingInterfaceSchema.properties.CellExplorerSortingInterface -globalStateCopy.schema.source_data.properties.KiloSortSortingInterface = KiloSortSortingInterfaceSchema.properties.KiloSortSortingInterface -globalStateCopy.schema.source_data.properties.Spike2RecordingInterface = Spike2RecordingInterfaceSchema.properties.Spike2RecordingInterface -globalStateCopy.schema.source_data.properties.BrukerTiffSinglePlaneImagingInterface = BrukerTiffSinglePlaneImagingInterfaceSchema.properties.BrukerTiffSinglePlaneImagingInterface -globalStateCopy.schema.source_data.properties.BrukerTiffMultiPlaneImagingInterface = BrukerTiffMultiPlaneImagingInterfaceSchema.properties.BrukerTiffMultiPlaneImagingInterface -globalStateCopy.schema.source_data.properties.MicroManagerTiffImagingInterface = MicroManagerTiffImagingInterfaceSchema.properties.MicroManagerTiffImagingInterface -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 -globalStateCopy.schema.source_data.properties.SbxImagingInterface = SbxImagingInterfaceSchema.properties.SbxImagingInterface -globalStateCopy.schema.source_data.properties.MCSRawRecordingInterface = MCSRawRecordingInterfaceSchema.properties.MCSRawRecordingInterface - -const results = globalStateCopy.results -for (let sub in results){ - for (let ses in results[sub]) results[sub][ses].source_data = {SpikeGLXNIDQInterface: {file_path: '/dummy/file/path'}} +const activePage = "conversion/sourcedata"; + +const globalStateCopy = JSON.parse(JSON.stringify(globalState)); +globalStateCopy.schema.source_data.properties.SpikeGLXRecordingInterface = + SpikeGLXRecordingInterfaceSchema.properties.SpikeGLXRecordingInterface; +globalStateCopy.schema.source_data.properties.SpikeGLXNIDQInterface = + SpikeGLXNIDQInterfaceSchema.properties.SpikeGLXNIDQInterface; +globalStateCopy.schema.source_data.properties.PhySortingInterface = + PhySortingInterfaceSchema.properties.PhySortingInterface; +globalStateCopy.schema.source_data.properties.NeuroScopeRecordingInterface = + NeuroScopeRecordingInterfaceSchema.properties.NeuroScopeRecordingInterface; +globalStateCopy.schema.source_data.properties.NeuroScopeLFPInterface = + NeuroScopeLFPInterfaceSchema.properties.NeuroScopeLFPInterface; +globalStateCopy.schema.source_data.properties.NeuroScopeSortingInterface = + NeuroScopeSortingInterfaceSchema.properties.NeuroScopeSortingInterface; +globalStateCopy.schema.source_data.properties.BiocamRecordingInterface = + BiocamRecordingInterfaceSchema.properties.BiocamRecordingInterface; +globalStateCopy.schema.source_data.properties.IntanRecordingInterface = + IntanRecordingInterfaceSchema.properties.IntanRecordingInterface; +globalStateCopy.schema.source_data.properties.OpenEphysRecordingInterface = + OpenEphysRecordingInterfaceSchema.properties.OpenEphysRecordingInterface; +globalStateCopy.schema.source_data.properties.BlackrockRecordingInterface = + BlackrockRecordingInterfaceSchema.properties.BlackrockRecordingInterface; +globalStateCopy.schema.source_data.properties.BlackrockSortingInterface = + BlackrockSortingInterfaceSchema.properties.BlackrockSortingInterface; +globalStateCopy.schema.source_data.properties.CellExplorerSortingInterface = + CellExplorerSortingInterfaceSchema.properties.CellExplorerSortingInterface; +globalStateCopy.schema.source_data.properties.KiloSortSortingInterface = + KiloSortSortingInterfaceSchema.properties.KiloSortSortingInterface; +globalStateCopy.schema.source_data.properties.Spike2RecordingInterface = + Spike2RecordingInterfaceSchema.properties.Spike2RecordingInterface; +globalStateCopy.schema.source_data.properties.BrukerTiffSinglePlaneImagingInterface = + BrukerTiffSinglePlaneImagingInterfaceSchema.properties.BrukerTiffSinglePlaneImagingInterface; +globalStateCopy.schema.source_data.properties.BrukerTiffMultiPlaneImagingInterface = + BrukerTiffMultiPlaneImagingInterfaceSchema.properties.BrukerTiffMultiPlaneImagingInterface; +globalStateCopy.schema.source_data.properties.MicroManagerTiffImagingInterface = + MicroManagerTiffImagingInterfaceSchema.properties.MicroManagerTiffImagingInterface; +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; +globalStateCopy.schema.source_data.properties.SbxImagingInterface = + SbxImagingInterfaceSchema.properties.SbxImagingInterface; +globalStateCopy.schema.source_data.properties.MCSRawRecordingInterface = + MCSRawRecordingInterfaceSchema.properties.MCSRawRecordingInterface; + +const results = globalStateCopy.results; +for (let sub in results) { + for (let ses in results[sub]) + results[sub][ses].source_data = { SpikeGLXNIDQInterface: { file_path: "/dummy/file/path" } }; } - export const All = PageTemplate.bind({}); All.args = { activePage, globalState: globalStateCopy }; export const SpikeGLXRecordingInterface = PageTemplate.bind({}); -const SpikeGLXRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -SpikeGLXRecordingInterfaceGlobalCopy.interfaces.interface = SpikeGLXRecordingInterface -SpikeGLXRecordingInterfaceGlobalCopy.schema.source_data = SpikeGLXRecordingInterfaceSchema +const SpikeGLXRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +SpikeGLXRecordingInterfaceGlobalCopy.interfaces.interface = SpikeGLXRecordingInterface; +SpikeGLXRecordingInterfaceGlobalCopy.schema.source_data = SpikeGLXRecordingInterfaceSchema; SpikeGLXRecordingInterface.args = { activePage, globalState: SpikeGLXRecordingInterfaceGlobalCopy }; export const SpikeGLXNIDQInterface = PageTemplate.bind({}); -const SpikeGLXNIDQInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -SpikeGLXNIDQInterfaceGlobalCopy.interfaces.interface = SpikeGLXNIDQInterface -SpikeGLXNIDQInterfaceGlobalCopy.schema.source_data = SpikeGLXNIDQInterfaceSchema +const SpikeGLXNIDQInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +SpikeGLXNIDQInterfaceGlobalCopy.interfaces.interface = SpikeGLXNIDQInterface; +SpikeGLXNIDQInterfaceGlobalCopy.schema.source_data = SpikeGLXNIDQInterfaceSchema; SpikeGLXNIDQInterface.args = { activePage, globalState: SpikeGLXNIDQInterfaceGlobalCopy }; export const PhySortingInterface = PageTemplate.bind({}); -const PhySortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -PhySortingInterfaceGlobalCopy.interfaces.interface = PhySortingInterface -PhySortingInterfaceGlobalCopy.schema.source_data = PhySortingInterfaceSchema +const PhySortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +PhySortingInterfaceGlobalCopy.interfaces.interface = PhySortingInterface; +PhySortingInterfaceGlobalCopy.schema.source_data = PhySortingInterfaceSchema; PhySortingInterface.args = { activePage, globalState: PhySortingInterfaceGlobalCopy }; export const NeuroScopeRecordingInterface = PageTemplate.bind({}); -const NeuroScopeRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -NeuroScopeRecordingInterfaceGlobalCopy.interfaces.interface = NeuroScopeRecordingInterface -NeuroScopeRecordingInterfaceGlobalCopy.schema.source_data = NeuroScopeRecordingInterfaceSchema +const NeuroScopeRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +NeuroScopeRecordingInterfaceGlobalCopy.interfaces.interface = NeuroScopeRecordingInterface; +NeuroScopeRecordingInterfaceGlobalCopy.schema.source_data = NeuroScopeRecordingInterfaceSchema; NeuroScopeRecordingInterface.args = { activePage, globalState: NeuroScopeRecordingInterfaceGlobalCopy }; export const NeuroScopeLFPInterface = PageTemplate.bind({}); -const NeuroScopeLFPInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -NeuroScopeLFPInterfaceGlobalCopy.interfaces.interface = NeuroScopeLFPInterface -NeuroScopeLFPInterfaceGlobalCopy.schema.source_data = NeuroScopeLFPInterfaceSchema +const NeuroScopeLFPInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +NeuroScopeLFPInterfaceGlobalCopy.interfaces.interface = NeuroScopeLFPInterface; +NeuroScopeLFPInterfaceGlobalCopy.schema.source_data = NeuroScopeLFPInterfaceSchema; NeuroScopeLFPInterface.args = { activePage, globalState: NeuroScopeLFPInterfaceGlobalCopy }; export const NeuroScopeSortingInterface = PageTemplate.bind({}); -const NeuroScopeSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -NeuroScopeSortingInterfaceGlobalCopy.interfaces.interface = NeuroScopeSortingInterface -NeuroScopeSortingInterfaceGlobalCopy.schema.source_data = NeuroScopeSortingInterfaceSchema +const NeuroScopeSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +NeuroScopeSortingInterfaceGlobalCopy.interfaces.interface = NeuroScopeSortingInterface; +NeuroScopeSortingInterfaceGlobalCopy.schema.source_data = NeuroScopeSortingInterfaceSchema; NeuroScopeSortingInterface.args = { activePage, globalState: NeuroScopeSortingInterfaceGlobalCopy }; export const BiocamRecordingInterface = PageTemplate.bind({}); -const BiocamRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -BiocamRecordingInterfaceGlobalCopy.interfaces.interface = BiocamRecordingInterface -BiocamRecordingInterfaceGlobalCopy.schema.source_data = BiocamRecordingInterfaceSchema +const BiocamRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +BiocamRecordingInterfaceGlobalCopy.interfaces.interface = BiocamRecordingInterface; +BiocamRecordingInterfaceGlobalCopy.schema.source_data = BiocamRecordingInterfaceSchema; BiocamRecordingInterface.args = { activePage, globalState: BiocamRecordingInterfaceGlobalCopy }; export const IntanRecordingInterface = PageTemplate.bind({}); -const IntanRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -IntanRecordingInterfaceGlobalCopy.interfaces.interface = IntanRecordingInterface -IntanRecordingInterfaceGlobalCopy.schema.source_data = IntanRecordingInterfaceSchema +const IntanRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +IntanRecordingInterfaceGlobalCopy.interfaces.interface = IntanRecordingInterface; +IntanRecordingInterfaceGlobalCopy.schema.source_data = IntanRecordingInterfaceSchema; IntanRecordingInterface.args = { activePage, globalState: IntanRecordingInterfaceGlobalCopy }; export const OpenEphysRecordingInterface = PageTemplate.bind({}); -const OpenEphysRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -OpenEphysRecordingInterfaceGlobalCopy.interfaces.interface = OpenEphysRecordingInterface -OpenEphysRecordingInterfaceGlobalCopy.schema.source_data = OpenEphysRecordingInterfaceSchema +const OpenEphysRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +OpenEphysRecordingInterfaceGlobalCopy.interfaces.interface = OpenEphysRecordingInterface; +OpenEphysRecordingInterfaceGlobalCopy.schema.source_data = OpenEphysRecordingInterfaceSchema; OpenEphysRecordingInterface.args = { activePage, globalState: OpenEphysRecordingInterfaceGlobalCopy }; export const BlackrockRecordingInterface = PageTemplate.bind({}); -const BlackrockRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -BlackrockRecordingInterfaceGlobalCopy.interfaces.interface = BlackrockRecordingInterface -BlackrockRecordingInterfaceGlobalCopy.schema.source_data = BlackrockRecordingInterfaceSchema +const BlackrockRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +BlackrockRecordingInterfaceGlobalCopy.interfaces.interface = BlackrockRecordingInterface; +BlackrockRecordingInterfaceGlobalCopy.schema.source_data = BlackrockRecordingInterfaceSchema; BlackrockRecordingInterface.args = { activePage, globalState: BlackrockRecordingInterfaceGlobalCopy }; export const BlackrockSortingInterface = PageTemplate.bind({}); -const BlackrockSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -BlackrockSortingInterfaceGlobalCopy.interfaces.interface = BlackrockSortingInterface -BlackrockSortingInterfaceGlobalCopy.schema.source_data = BlackrockSortingInterfaceSchema +const BlackrockSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +BlackrockSortingInterfaceGlobalCopy.interfaces.interface = BlackrockSortingInterface; +BlackrockSortingInterfaceGlobalCopy.schema.source_data = BlackrockSortingInterfaceSchema; BlackrockSortingInterface.args = { activePage, globalState: BlackrockSortingInterfaceGlobalCopy }; export const CellExplorerSortingInterface = PageTemplate.bind({}); -const CellExplorerSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -CellExplorerSortingInterfaceGlobalCopy.interfaces.interface = CellExplorerSortingInterface -CellExplorerSortingInterfaceGlobalCopy.schema.source_data = CellExplorerSortingInterfaceSchema +const CellExplorerSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +CellExplorerSortingInterfaceGlobalCopy.interfaces.interface = CellExplorerSortingInterface; +CellExplorerSortingInterfaceGlobalCopy.schema.source_data = CellExplorerSortingInterfaceSchema; CellExplorerSortingInterface.args = { activePage, globalState: CellExplorerSortingInterfaceGlobalCopy }; export const KiloSortSortingInterface = PageTemplate.bind({}); -const KiloSortSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -KiloSortSortingInterfaceGlobalCopy.interfaces.interface = KiloSortSortingInterface -KiloSortSortingInterfaceGlobalCopy.schema.source_data = KiloSortSortingInterfaceSchema +const KiloSortSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +KiloSortSortingInterfaceGlobalCopy.interfaces.interface = KiloSortSortingInterface; +KiloSortSortingInterfaceGlobalCopy.schema.source_data = KiloSortSortingInterfaceSchema; KiloSortSortingInterface.args = { activePage, globalState: KiloSortSortingInterfaceGlobalCopy }; export const Spike2RecordingInterface = PageTemplate.bind({}); -const Spike2RecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -Spike2RecordingInterfaceGlobalCopy.interfaces.interface = Spike2RecordingInterface -Spike2RecordingInterfaceGlobalCopy.schema.source_data = Spike2RecordingInterfaceSchema +const Spike2RecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +Spike2RecordingInterfaceGlobalCopy.interfaces.interface = Spike2RecordingInterface; +Spike2RecordingInterfaceGlobalCopy.schema.source_data = Spike2RecordingInterfaceSchema; Spike2RecordingInterface.args = { activePage, globalState: Spike2RecordingInterfaceGlobalCopy }; export const BrukerTiffSinglePlaneImagingInterface = PageTemplate.bind({}); -const BrukerTiffSinglePlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffSinglePlaneImagingInterface -BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffSinglePlaneImagingInterfaceSchema -BrukerTiffSinglePlaneImagingInterface.args = { activePage, globalState: BrukerTiffSinglePlaneImagingInterfaceGlobalCopy }; +const BrukerTiffSinglePlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffSinglePlaneImagingInterface; +BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffSinglePlaneImagingInterfaceSchema; +BrukerTiffSinglePlaneImagingInterface.args = { + activePage, + globalState: BrukerTiffSinglePlaneImagingInterfaceGlobalCopy, +}; export const BrukerTiffMultiPlaneImagingInterface = PageTemplate.bind({}); -const BrukerTiffMultiPlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffMultiPlaneImagingInterface -BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffMultiPlaneImagingInterfaceSchema +const BrukerTiffMultiPlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffMultiPlaneImagingInterface; +BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffMultiPlaneImagingInterfaceSchema; BrukerTiffMultiPlaneImagingInterface.args = { activePage, globalState: BrukerTiffMultiPlaneImagingInterfaceGlobalCopy }; export const MicroManagerTiffImagingInterface = PageTemplate.bind({}); -const MicroManagerTiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -MicroManagerTiffImagingInterfaceGlobalCopy.interfaces.interface = MicroManagerTiffImagingInterface -MicroManagerTiffImagingInterfaceGlobalCopy.schema.source_data = MicroManagerTiffImagingInterfaceSchema +const MicroManagerTiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +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 +const ScanImageImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +ScanImageImagingInterfaceGlobalCopy.interfaces.interface = ScanImageImagingInterface; +ScanImageImagingInterfaceGlobalCopy.schema.source_data = ScanImageImagingInterfaceSchema; ScanImageImagingInterface.args = { activePage, globalState: ScanImageImagingInterfaceGlobalCopy }; export const TiffImagingInterface = PageTemplate.bind({}); -const TiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -TiffImagingInterfaceGlobalCopy.interfaces.interface = TiffImagingInterface -TiffImagingInterfaceGlobalCopy.schema.source_data = TiffImagingInterfaceSchema +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 +const MiniscopeImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +MiniscopeImagingInterfaceGlobalCopy.interfaces.interface = MiniscopeImagingInterface; +MiniscopeImagingInterfaceGlobalCopy.schema.source_data = MiniscopeImagingInterfaceSchema; MiniscopeImagingInterface.args = { activePage, globalState: MiniscopeImagingInterfaceGlobalCopy }; export const SbxImagingInterface = PageTemplate.bind({}); -const SbxImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -SbxImagingInterfaceGlobalCopy.interfaces.interface = SbxImagingInterface -SbxImagingInterfaceGlobalCopy.schema.source_data = SbxImagingInterfaceSchema +const SbxImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +SbxImagingInterfaceGlobalCopy.interfaces.interface = SbxImagingInterface; +SbxImagingInterfaceGlobalCopy.schema.source_data = SbxImagingInterfaceSchema; SbxImagingInterface.args = { activePage, globalState: SbxImagingInterfaceGlobalCopy }; export const MCSRawRecordingInterface = PageTemplate.bind({}); -const MCSRawRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -MCSRawRecordingInterfaceGlobalCopy.interfaces.interface = MCSRawRecordingInterface -MCSRawRecordingInterfaceGlobalCopy.schema.source_data = MCSRawRecordingInterfaceSchema +const MCSRawRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +MCSRawRecordingInterfaceGlobalCopy.interfaces.interface = MCSRawRecordingInterface; +MCSRawRecordingInterfaceGlobalCopy.schema.source_data = MCSRawRecordingInterfaceSchema; MCSRawRecordingInterface.args = { activePage, globalState: MCSRawRecordingInterfaceGlobalCopy }; - From 52ca974e039c906cb51b221887f4837b02834087 Mon Sep 17 00:00:00 2001 From: Garrett Date: Fri, 29 Sep 2023 13:20:10 -0700 Subject: [PATCH 08/10] Add MEArecRecordingInterface --- guideGlobalMetadata.json | 3 +- .../generated/BiocamRecordingInterface.json | 2 +- .../BlackrockRecordingInterface.json | 2 +- .../generated/BlackrockSortingInterface.json | 2 +- .../BrukerTiffMultiPlaneImagingInterface.json | 2 +- ...BrukerTiffSinglePlaneImagingInterface.json | 2 +- .../CellExplorerSortingInterface.json | 2 +- .../generated/IntanRecordingInterface.json | 2 +- .../generated/KiloSortSortingInterface.json | 2 +- .../generated/MEArecRecordingInterface.json | 33 +++ .../MicroManagerTiffImagingInterface.json | 2 +- .../generated/MiniscopeImagingInterface.json | 2 +- .../generated/NeuroScopeLFPInterface.json | 2 +- .../NeuroScopeRecordingInterface.json | 2 +- .../generated/NeuroScopeSortingInterface.json | 2 +- .../OpenEphysRecordingInterface.json | 2 +- .../json/generated/PhySortingInterface.json | 2 +- .../json/generated/SbxImagingInterface.json | 2 +- .../generated/ScanImageImagingInterface.json | 2 +- .../generated/Spike2RecordingInterface.json | 2 +- .../json/generated/SpikeGLXNIDQInterface.json | 2 +- .../generated/SpikeGLXRecordingInterface.json | 2 +- .../json/generated/TiffImagingInterface.json | 2 +- .../pages/guided-mode/SourceData.stories.js | 264 +++++++++--------- 24 files changed, 181 insertions(+), 161 deletions(-) create mode 100644 schemas/json/generated/MEArecRecordingInterface.json diff --git a/guideGlobalMetadata.json b/guideGlobalMetadata.json index bfce304a0..6eb5597a0 100644 --- a/guideGlobalMetadata.json +++ b/guideGlobalMetadata.json @@ -20,6 +20,7 @@ "ScanImageImagingInterface", "TiffImagingInterface", "MiniscopeImagingInterface", - "SbxImagingInterface" + "SbxImagingInterface", + "MEArecRecordingInterface" ] } diff --git a/schemas/json/generated/BiocamRecordingInterface.json b/schemas/json/generated/BiocamRecordingInterface.json index 8d51c7b06..3265fe263 100644 --- a/schemas/json/generated/BiocamRecordingInterface.json +++ b/schemas/json/generated/BiocamRecordingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/BlackrockRecordingInterface.json b/schemas/json/generated/BlackrockRecordingInterface.json index 25190ebf2..32de2a224 100644 --- a/schemas/json/generated/BlackrockRecordingInterface.json +++ b/schemas/json/generated/BlackrockRecordingInterface.json @@ -35,4 +35,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/BlackrockSortingInterface.json b/schemas/json/generated/BlackrockSortingInterface.json index 02661e794..1b0b34068 100644 --- a/schemas/json/generated/BlackrockSortingInterface.json +++ b/schemas/json/generated/BlackrockSortingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json b/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json index a4383d177..7ebe1b31e 100644 --- a/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json +++ b/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json b/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json index 844834ff9..50cea61c2 100644 --- a/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json +++ b/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/CellExplorerSortingInterface.json b/schemas/json/generated/CellExplorerSortingInterface.json index c51a65d4e..e2cc689b1 100644 --- a/schemas/json/generated/CellExplorerSortingInterface.json +++ b/schemas/json/generated/CellExplorerSortingInterface.json @@ -26,4 +26,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/IntanRecordingInterface.json b/schemas/json/generated/IntanRecordingInterface.json index 07904ada2..b75b39eda 100644 --- a/schemas/json/generated/IntanRecordingInterface.json +++ b/schemas/json/generated/IntanRecordingInterface.json @@ -34,4 +34,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/KiloSortSortingInterface.json b/schemas/json/generated/KiloSortSortingInterface.json index a31d22b75..5ef66d490 100644 --- a/schemas/json/generated/KiloSortSortingInterface.json +++ b/schemas/json/generated/KiloSortSortingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/MEArecRecordingInterface.json b/schemas/json/generated/MEArecRecordingInterface.json new file mode 100644 index 000000000..25710cb90 --- /dev/null +++ b/schemas/json/generated/MEArecRecordingInterface.json @@ -0,0 +1,33 @@ +{ + "required": [], + "properties": { + "MEArecRecordingInterface": { + "required": [ + "file_path" + ], + "properties": { + "file_path": { + "format": "file", + "type": "string" + }, + "verbose": { + "type": "boolean", + "default": true + }, + "es_key": { + "type": "string", + "default": "ElectricalSeries" + } + }, + "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" +} \ No newline at end of file diff --git a/schemas/json/generated/MicroManagerTiffImagingInterface.json b/schemas/json/generated/MicroManagerTiffImagingInterface.json index fb0cd8876..218c8c281 100644 --- a/schemas/json/generated/MicroManagerTiffImagingInterface.json +++ b/schemas/json/generated/MicroManagerTiffImagingInterface.json @@ -27,4 +27,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/MiniscopeImagingInterface.json b/schemas/json/generated/MiniscopeImagingInterface.json index 33171beb5..d73ea0721 100644 --- a/schemas/json/generated/MiniscopeImagingInterface.json +++ b/schemas/json/generated/MiniscopeImagingInterface.json @@ -22,4 +22,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/NeuroScopeLFPInterface.json b/schemas/json/generated/NeuroScopeLFPInterface.json index d42a885ab..3c6224cf0 100644 --- a/schemas/json/generated/NeuroScopeLFPInterface.json +++ b/schemas/json/generated/NeuroScopeLFPInterface.json @@ -29,4 +29,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/NeuroScopeRecordingInterface.json b/schemas/json/generated/NeuroScopeRecordingInterface.json index 3e95a33d0..2077b287a 100644 --- a/schemas/json/generated/NeuroScopeRecordingInterface.json +++ b/schemas/json/generated/NeuroScopeRecordingInterface.json @@ -37,4 +37,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/NeuroScopeSortingInterface.json b/schemas/json/generated/NeuroScopeSortingInterface.json index 680fcbce9..fe3d76fe6 100644 --- a/schemas/json/generated/NeuroScopeSortingInterface.json +++ b/schemas/json/generated/NeuroScopeSortingInterface.json @@ -37,4 +37,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/OpenEphysRecordingInterface.json b/schemas/json/generated/OpenEphysRecordingInterface.json index f6193ea0c..f3affa4d3 100644 --- a/schemas/json/generated/OpenEphysRecordingInterface.json +++ b/schemas/json/generated/OpenEphysRecordingInterface.json @@ -33,4 +33,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/PhySortingInterface.json b/schemas/json/generated/PhySortingInterface.json index edcc2183d..182494ca2 100644 --- a/schemas/json/generated/PhySortingInterface.json +++ b/schemas/json/generated/PhySortingInterface.json @@ -29,4 +29,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/SbxImagingInterface.json b/schemas/json/generated/SbxImagingInterface.json index d02d2c0e7..8b97044b0 100644 --- a/schemas/json/generated/SbxImagingInterface.json +++ b/schemas/json/generated/SbxImagingInterface.json @@ -29,4 +29,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/ScanImageImagingInterface.json b/schemas/json/generated/ScanImageImagingInterface.json index 71b3cb59a..26925e9f5 100644 --- a/schemas/json/generated/ScanImageImagingInterface.json +++ b/schemas/json/generated/ScanImageImagingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/Spike2RecordingInterface.json b/schemas/json/generated/Spike2RecordingInterface.json index 81c785ad8..3b143bf75 100644 --- a/schemas/json/generated/Spike2RecordingInterface.json +++ b/schemas/json/generated/Spike2RecordingInterface.json @@ -31,4 +31,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/SpikeGLXNIDQInterface.json b/schemas/json/generated/SpikeGLXNIDQInterface.json index 14ad82eb8..8a38f1387 100644 --- a/schemas/json/generated/SpikeGLXNIDQInterface.json +++ b/schemas/json/generated/SpikeGLXNIDQInterface.json @@ -35,4 +35,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/SpikeGLXRecordingInterface.json b/schemas/json/generated/SpikeGLXRecordingInterface.json index 4b2034df8..603158605 100644 --- a/schemas/json/generated/SpikeGLXRecordingInterface.json +++ b/schemas/json/generated/SpikeGLXRecordingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/schemas/json/generated/TiffImagingInterface.json b/schemas/json/generated/TiffImagingInterface.json index 036de528a..0cce7efa6 100644 --- a/schemas/json/generated/TiffImagingInterface.json +++ b/schemas/json/generated/TiffImagingInterface.json @@ -31,4 +31,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} +} \ No newline at end of file diff --git a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js index 9ac3dd511..ce064ef03 100644 --- a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js +++ b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js @@ -1,213 +1,199 @@ import { globalState, PageTemplate } from "./storyStates"; -import SpikeGLXRecordingInterfaceSchema from "../../../../../../schemas/json/generated/SpikeGLXRecordingInterface.json"; -import SpikeGLXNIDQInterfaceSchema from "../../../../../../schemas/json/generated/SpikeGLXNIDQInterface.json"; -import PhySortingInterfaceSchema from "../../../../../../schemas/json/generated/PhySortingInterface.json"; -import NeuroScopeRecordingInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeRecordingInterface.json"; -import NeuroScopeLFPInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeLFPInterface.json"; -import NeuroScopeSortingInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeSortingInterface.json"; -import BiocamRecordingInterfaceSchema from "../../../../../../schemas/json/generated/BiocamRecordingInterface.json"; -import IntanRecordingInterfaceSchema from "../../../../../../schemas/json/generated/IntanRecordingInterface.json"; -import OpenEphysRecordingInterfaceSchema from "../../../../../../schemas/json/generated/OpenEphysRecordingInterface.json"; -import BlackrockRecordingInterfaceSchema from "../../../../../../schemas/json/generated/BlackrockRecordingInterface.json"; -import BlackrockSortingInterfaceSchema from "../../../../../../schemas/json/generated/BlackrockSortingInterface.json"; -import CellExplorerSortingInterfaceSchema from "../../../../../../schemas/json/generated/CellExplorerSortingInterface.json"; -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 BrukerTiffMultiPlaneImagingInterfaceSchema from "../../../../../../schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json"; -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"; -import SbxImagingInterfaceSchema from "../../../../../../schemas/json/generated/SbxImagingInterface.json"; +import SpikeGLXRecordingInterfaceSchema from '../../../../../../schemas/json/generated/SpikeGLXRecordingInterface.json' +import SpikeGLXNIDQInterfaceSchema from '../../../../../../schemas/json/generated/SpikeGLXNIDQInterface.json' +import PhySortingInterfaceSchema from '../../../../../../schemas/json/generated/PhySortingInterface.json' +import NeuroScopeRecordingInterfaceSchema from '../../../../../../schemas/json/generated/NeuroScopeRecordingInterface.json' +import NeuroScopeLFPInterfaceSchema from '../../../../../../schemas/json/generated/NeuroScopeLFPInterface.json' +import NeuroScopeSortingInterfaceSchema from '../../../../../../schemas/json/generated/NeuroScopeSortingInterface.json' +import BiocamRecordingInterfaceSchema from '../../../../../../schemas/json/generated/BiocamRecordingInterface.json' +import IntanRecordingInterfaceSchema from '../../../../../../schemas/json/generated/IntanRecordingInterface.json' +import OpenEphysRecordingInterfaceSchema from '../../../../../../schemas/json/generated/OpenEphysRecordingInterface.json' +import BlackrockRecordingInterfaceSchema from '../../../../../../schemas/json/generated/BlackrockRecordingInterface.json' +import BlackrockSortingInterfaceSchema from '../../../../../../schemas/json/generated/BlackrockSortingInterface.json' +import CellExplorerSortingInterfaceSchema from '../../../../../../schemas/json/generated/CellExplorerSortingInterface.json' +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 BrukerTiffMultiPlaneImagingInterfaceSchema from '../../../../../../schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json' +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' +import SbxImagingInterfaceSchema from '../../../../../../schemas/json/generated/SbxImagingInterface.json' +import MEArecRecordingInterfaceSchema from '../../../../../../schemas/json/generated/MEArecRecordingInterface.json' export default { title: "Pages/Guided Mode/Source Data", parameters: { chromatic: { disableSnapshot: false }, - }, + } }; -const activePage = "conversion/sourcedata"; - -const globalStateCopy = JSON.parse(JSON.stringify(globalState)); -globalStateCopy.schema.source_data.properties.SpikeGLXRecordingInterface = - SpikeGLXRecordingInterfaceSchema.properties.SpikeGLXRecordingInterface; -globalStateCopy.schema.source_data.properties.SpikeGLXNIDQInterface = - SpikeGLXNIDQInterfaceSchema.properties.SpikeGLXNIDQInterface; -globalStateCopy.schema.source_data.properties.PhySortingInterface = - PhySortingInterfaceSchema.properties.PhySortingInterface; -globalStateCopy.schema.source_data.properties.NeuroScopeRecordingInterface = - NeuroScopeRecordingInterfaceSchema.properties.NeuroScopeRecordingInterface; -globalStateCopy.schema.source_data.properties.NeuroScopeLFPInterface = - NeuroScopeLFPInterfaceSchema.properties.NeuroScopeLFPInterface; -globalStateCopy.schema.source_data.properties.NeuroScopeSortingInterface = - NeuroScopeSortingInterfaceSchema.properties.NeuroScopeSortingInterface; -globalStateCopy.schema.source_data.properties.BiocamRecordingInterface = - BiocamRecordingInterfaceSchema.properties.BiocamRecordingInterface; -globalStateCopy.schema.source_data.properties.IntanRecordingInterface = - IntanRecordingInterfaceSchema.properties.IntanRecordingInterface; -globalStateCopy.schema.source_data.properties.OpenEphysRecordingInterface = - OpenEphysRecordingInterfaceSchema.properties.OpenEphysRecordingInterface; -globalStateCopy.schema.source_data.properties.BlackrockRecordingInterface = - BlackrockRecordingInterfaceSchema.properties.BlackrockRecordingInterface; -globalStateCopy.schema.source_data.properties.BlackrockSortingInterface = - BlackrockSortingInterfaceSchema.properties.BlackrockSortingInterface; -globalStateCopy.schema.source_data.properties.CellExplorerSortingInterface = - CellExplorerSortingInterfaceSchema.properties.CellExplorerSortingInterface; -globalStateCopy.schema.source_data.properties.KiloSortSortingInterface = - KiloSortSortingInterfaceSchema.properties.KiloSortSortingInterface; -globalStateCopy.schema.source_data.properties.Spike2RecordingInterface = - Spike2RecordingInterfaceSchema.properties.Spike2RecordingInterface; -globalStateCopy.schema.source_data.properties.BrukerTiffSinglePlaneImagingInterface = - BrukerTiffSinglePlaneImagingInterfaceSchema.properties.BrukerTiffSinglePlaneImagingInterface; -globalStateCopy.schema.source_data.properties.BrukerTiffMultiPlaneImagingInterface = - BrukerTiffMultiPlaneImagingInterfaceSchema.properties.BrukerTiffMultiPlaneImagingInterface; -globalStateCopy.schema.source_data.properties.MicroManagerTiffImagingInterface = - MicroManagerTiffImagingInterfaceSchema.properties.MicroManagerTiffImagingInterface; -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; -globalStateCopy.schema.source_data.properties.SbxImagingInterface = - SbxImagingInterfaceSchema.properties.SbxImagingInterface; - -const results = globalStateCopy.results; -for (let sub in results) { - for (let ses in results[sub]) - results[sub][ses].source_data = { SpikeGLXNIDQInterface: { file_path: "/dummy/file/path" } }; +const activePage = "conversion/sourcedata" + + +const globalStateCopy = JSON.parse(JSON.stringify(globalState)) +globalStateCopy.schema.source_data.properties.SpikeGLXRecordingInterface = SpikeGLXRecordingInterfaceSchema.properties.SpikeGLXRecordingInterface +globalStateCopy.schema.source_data.properties.SpikeGLXNIDQInterface = SpikeGLXNIDQInterfaceSchema.properties.SpikeGLXNIDQInterface +globalStateCopy.schema.source_data.properties.PhySortingInterface = PhySortingInterfaceSchema.properties.PhySortingInterface +globalStateCopy.schema.source_data.properties.NeuroScopeRecordingInterface = NeuroScopeRecordingInterfaceSchema.properties.NeuroScopeRecordingInterface +globalStateCopy.schema.source_data.properties.NeuroScopeLFPInterface = NeuroScopeLFPInterfaceSchema.properties.NeuroScopeLFPInterface +globalStateCopy.schema.source_data.properties.NeuroScopeSortingInterface = NeuroScopeSortingInterfaceSchema.properties.NeuroScopeSortingInterface +globalStateCopy.schema.source_data.properties.BiocamRecordingInterface = BiocamRecordingInterfaceSchema.properties.BiocamRecordingInterface +globalStateCopy.schema.source_data.properties.IntanRecordingInterface = IntanRecordingInterfaceSchema.properties.IntanRecordingInterface +globalStateCopy.schema.source_data.properties.OpenEphysRecordingInterface = OpenEphysRecordingInterfaceSchema.properties.OpenEphysRecordingInterface +globalStateCopy.schema.source_data.properties.BlackrockRecordingInterface = BlackrockRecordingInterfaceSchema.properties.BlackrockRecordingInterface +globalStateCopy.schema.source_data.properties.BlackrockSortingInterface = BlackrockSortingInterfaceSchema.properties.BlackrockSortingInterface +globalStateCopy.schema.source_data.properties.CellExplorerSortingInterface = CellExplorerSortingInterfaceSchema.properties.CellExplorerSortingInterface +globalStateCopy.schema.source_data.properties.KiloSortSortingInterface = KiloSortSortingInterfaceSchema.properties.KiloSortSortingInterface +globalStateCopy.schema.source_data.properties.Spike2RecordingInterface = Spike2RecordingInterfaceSchema.properties.Spike2RecordingInterface +globalStateCopy.schema.source_data.properties.BrukerTiffSinglePlaneImagingInterface = BrukerTiffSinglePlaneImagingInterfaceSchema.properties.BrukerTiffSinglePlaneImagingInterface +globalStateCopy.schema.source_data.properties.BrukerTiffMultiPlaneImagingInterface = BrukerTiffMultiPlaneImagingInterfaceSchema.properties.BrukerTiffMultiPlaneImagingInterface +globalStateCopy.schema.source_data.properties.MicroManagerTiffImagingInterface = MicroManagerTiffImagingInterfaceSchema.properties.MicroManagerTiffImagingInterface +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 +globalStateCopy.schema.source_data.properties.SbxImagingInterface = SbxImagingInterfaceSchema.properties.SbxImagingInterface +globalStateCopy.schema.source_data.properties.MEArecRecordingInterface = MEArecRecordingInterfaceSchema.properties.MEArecRecordingInterface + +const results = globalStateCopy.results +for (let sub in results){ + for (let ses in results[sub]) results[sub][ses].source_data = {SpikeGLXNIDQInterface: {file_path: '/dummy/file/path'}} } + export const All = PageTemplate.bind({}); All.args = { activePage, globalState: globalStateCopy }; export const SpikeGLXRecordingInterface = PageTemplate.bind({}); -const SpikeGLXRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -SpikeGLXRecordingInterfaceGlobalCopy.interfaces.interface = SpikeGLXRecordingInterface; -SpikeGLXRecordingInterfaceGlobalCopy.schema.source_data = SpikeGLXRecordingInterfaceSchema; +const SpikeGLXRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +SpikeGLXRecordingInterfaceGlobalCopy.interfaces.interface = SpikeGLXRecordingInterface +SpikeGLXRecordingInterfaceGlobalCopy.schema.source_data = SpikeGLXRecordingInterfaceSchema SpikeGLXRecordingInterface.args = { activePage, globalState: SpikeGLXRecordingInterfaceGlobalCopy }; export const SpikeGLXNIDQInterface = PageTemplate.bind({}); -const SpikeGLXNIDQInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -SpikeGLXNIDQInterfaceGlobalCopy.interfaces.interface = SpikeGLXNIDQInterface; -SpikeGLXNIDQInterfaceGlobalCopy.schema.source_data = SpikeGLXNIDQInterfaceSchema; +const SpikeGLXNIDQInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +SpikeGLXNIDQInterfaceGlobalCopy.interfaces.interface = SpikeGLXNIDQInterface +SpikeGLXNIDQInterfaceGlobalCopy.schema.source_data = SpikeGLXNIDQInterfaceSchema SpikeGLXNIDQInterface.args = { activePage, globalState: SpikeGLXNIDQInterfaceGlobalCopy }; export const PhySortingInterface = PageTemplate.bind({}); -const PhySortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -PhySortingInterfaceGlobalCopy.interfaces.interface = PhySortingInterface; -PhySortingInterfaceGlobalCopy.schema.source_data = PhySortingInterfaceSchema; +const PhySortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +PhySortingInterfaceGlobalCopy.interfaces.interface = PhySortingInterface +PhySortingInterfaceGlobalCopy.schema.source_data = PhySortingInterfaceSchema PhySortingInterface.args = { activePage, globalState: PhySortingInterfaceGlobalCopy }; export const NeuroScopeRecordingInterface = PageTemplate.bind({}); -const NeuroScopeRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -NeuroScopeRecordingInterfaceGlobalCopy.interfaces.interface = NeuroScopeRecordingInterface; -NeuroScopeRecordingInterfaceGlobalCopy.schema.source_data = NeuroScopeRecordingInterfaceSchema; +const NeuroScopeRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +NeuroScopeRecordingInterfaceGlobalCopy.interfaces.interface = NeuroScopeRecordingInterface +NeuroScopeRecordingInterfaceGlobalCopy.schema.source_data = NeuroScopeRecordingInterfaceSchema NeuroScopeRecordingInterface.args = { activePage, globalState: NeuroScopeRecordingInterfaceGlobalCopy }; export const NeuroScopeLFPInterface = PageTemplate.bind({}); -const NeuroScopeLFPInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -NeuroScopeLFPInterfaceGlobalCopy.interfaces.interface = NeuroScopeLFPInterface; -NeuroScopeLFPInterfaceGlobalCopy.schema.source_data = NeuroScopeLFPInterfaceSchema; +const NeuroScopeLFPInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +NeuroScopeLFPInterfaceGlobalCopy.interfaces.interface = NeuroScopeLFPInterface +NeuroScopeLFPInterfaceGlobalCopy.schema.source_data = NeuroScopeLFPInterfaceSchema NeuroScopeLFPInterface.args = { activePage, globalState: NeuroScopeLFPInterfaceGlobalCopy }; export const NeuroScopeSortingInterface = PageTemplate.bind({}); -const NeuroScopeSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -NeuroScopeSortingInterfaceGlobalCopy.interfaces.interface = NeuroScopeSortingInterface; -NeuroScopeSortingInterfaceGlobalCopy.schema.source_data = NeuroScopeSortingInterfaceSchema; +const NeuroScopeSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +NeuroScopeSortingInterfaceGlobalCopy.interfaces.interface = NeuroScopeSortingInterface +NeuroScopeSortingInterfaceGlobalCopy.schema.source_data = NeuroScopeSortingInterfaceSchema NeuroScopeSortingInterface.args = { activePage, globalState: NeuroScopeSortingInterfaceGlobalCopy }; export const BiocamRecordingInterface = PageTemplate.bind({}); -const BiocamRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -BiocamRecordingInterfaceGlobalCopy.interfaces.interface = BiocamRecordingInterface; -BiocamRecordingInterfaceGlobalCopy.schema.source_data = BiocamRecordingInterfaceSchema; +const BiocamRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +BiocamRecordingInterfaceGlobalCopy.interfaces.interface = BiocamRecordingInterface +BiocamRecordingInterfaceGlobalCopy.schema.source_data = BiocamRecordingInterfaceSchema BiocamRecordingInterface.args = { activePage, globalState: BiocamRecordingInterfaceGlobalCopy }; export const IntanRecordingInterface = PageTemplate.bind({}); -const IntanRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -IntanRecordingInterfaceGlobalCopy.interfaces.interface = IntanRecordingInterface; -IntanRecordingInterfaceGlobalCopy.schema.source_data = IntanRecordingInterfaceSchema; +const IntanRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +IntanRecordingInterfaceGlobalCopy.interfaces.interface = IntanRecordingInterface +IntanRecordingInterfaceGlobalCopy.schema.source_data = IntanRecordingInterfaceSchema IntanRecordingInterface.args = { activePage, globalState: IntanRecordingInterfaceGlobalCopy }; export const OpenEphysRecordingInterface = PageTemplate.bind({}); -const OpenEphysRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -OpenEphysRecordingInterfaceGlobalCopy.interfaces.interface = OpenEphysRecordingInterface; -OpenEphysRecordingInterfaceGlobalCopy.schema.source_data = OpenEphysRecordingInterfaceSchema; +const OpenEphysRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +OpenEphysRecordingInterfaceGlobalCopy.interfaces.interface = OpenEphysRecordingInterface +OpenEphysRecordingInterfaceGlobalCopy.schema.source_data = OpenEphysRecordingInterfaceSchema OpenEphysRecordingInterface.args = { activePage, globalState: OpenEphysRecordingInterfaceGlobalCopy }; export const BlackrockRecordingInterface = PageTemplate.bind({}); -const BlackrockRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -BlackrockRecordingInterfaceGlobalCopy.interfaces.interface = BlackrockRecordingInterface; -BlackrockRecordingInterfaceGlobalCopy.schema.source_data = BlackrockRecordingInterfaceSchema; +const BlackrockRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +BlackrockRecordingInterfaceGlobalCopy.interfaces.interface = BlackrockRecordingInterface +BlackrockRecordingInterfaceGlobalCopy.schema.source_data = BlackrockRecordingInterfaceSchema BlackrockRecordingInterface.args = { activePage, globalState: BlackrockRecordingInterfaceGlobalCopy }; export const BlackrockSortingInterface = PageTemplate.bind({}); -const BlackrockSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -BlackrockSortingInterfaceGlobalCopy.interfaces.interface = BlackrockSortingInterface; -BlackrockSortingInterfaceGlobalCopy.schema.source_data = BlackrockSortingInterfaceSchema; +const BlackrockSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +BlackrockSortingInterfaceGlobalCopy.interfaces.interface = BlackrockSortingInterface +BlackrockSortingInterfaceGlobalCopy.schema.source_data = BlackrockSortingInterfaceSchema BlackrockSortingInterface.args = { activePage, globalState: BlackrockSortingInterfaceGlobalCopy }; export const CellExplorerSortingInterface = PageTemplate.bind({}); -const CellExplorerSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -CellExplorerSortingInterfaceGlobalCopy.interfaces.interface = CellExplorerSortingInterface; -CellExplorerSortingInterfaceGlobalCopy.schema.source_data = CellExplorerSortingInterfaceSchema; +const CellExplorerSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +CellExplorerSortingInterfaceGlobalCopy.interfaces.interface = CellExplorerSortingInterface +CellExplorerSortingInterfaceGlobalCopy.schema.source_data = CellExplorerSortingInterfaceSchema CellExplorerSortingInterface.args = { activePage, globalState: CellExplorerSortingInterfaceGlobalCopy }; export const KiloSortSortingInterface = PageTemplate.bind({}); -const KiloSortSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -KiloSortSortingInterfaceGlobalCopy.interfaces.interface = KiloSortSortingInterface; -KiloSortSortingInterfaceGlobalCopy.schema.source_data = KiloSortSortingInterfaceSchema; +const KiloSortSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +KiloSortSortingInterfaceGlobalCopy.interfaces.interface = KiloSortSortingInterface +KiloSortSortingInterfaceGlobalCopy.schema.source_data = KiloSortSortingInterfaceSchema KiloSortSortingInterface.args = { activePage, globalState: KiloSortSortingInterfaceGlobalCopy }; export const Spike2RecordingInterface = PageTemplate.bind({}); -const Spike2RecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -Spike2RecordingInterfaceGlobalCopy.interfaces.interface = Spike2RecordingInterface; -Spike2RecordingInterfaceGlobalCopy.schema.source_data = Spike2RecordingInterfaceSchema; +const Spike2RecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +Spike2RecordingInterfaceGlobalCopy.interfaces.interface = Spike2RecordingInterface +Spike2RecordingInterfaceGlobalCopy.schema.source_data = Spike2RecordingInterfaceSchema Spike2RecordingInterface.args = { activePage, globalState: Spike2RecordingInterfaceGlobalCopy }; export const BrukerTiffSinglePlaneImagingInterface = PageTemplate.bind({}); -const BrukerTiffSinglePlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffSinglePlaneImagingInterface; -BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffSinglePlaneImagingInterfaceSchema; -BrukerTiffSinglePlaneImagingInterface.args = { - activePage, - globalState: BrukerTiffSinglePlaneImagingInterfaceGlobalCopy, -}; +const BrukerTiffSinglePlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffSinglePlaneImagingInterface +BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffSinglePlaneImagingInterfaceSchema +BrukerTiffSinglePlaneImagingInterface.args = { activePage, globalState: BrukerTiffSinglePlaneImagingInterfaceGlobalCopy }; export const BrukerTiffMultiPlaneImagingInterface = PageTemplate.bind({}); -const BrukerTiffMultiPlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffMultiPlaneImagingInterface; -BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffMultiPlaneImagingInterfaceSchema; +const BrukerTiffMultiPlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffMultiPlaneImagingInterface +BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffMultiPlaneImagingInterfaceSchema BrukerTiffMultiPlaneImagingInterface.args = { activePage, globalState: BrukerTiffMultiPlaneImagingInterfaceGlobalCopy }; export const MicroManagerTiffImagingInterface = PageTemplate.bind({}); -const MicroManagerTiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -MicroManagerTiffImagingInterfaceGlobalCopy.interfaces.interface = MicroManagerTiffImagingInterface; -MicroManagerTiffImagingInterfaceGlobalCopy.schema.source_data = MicroManagerTiffImagingInterfaceSchema; +const MicroManagerTiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +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; +const ScanImageImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +ScanImageImagingInterfaceGlobalCopy.interfaces.interface = ScanImageImagingInterface +ScanImageImagingInterfaceGlobalCopy.schema.source_data = ScanImageImagingInterfaceSchema ScanImageImagingInterface.args = { activePage, globalState: ScanImageImagingInterfaceGlobalCopy }; export const TiffImagingInterface = PageTemplate.bind({}); -const TiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -TiffImagingInterfaceGlobalCopy.interfaces.interface = TiffImagingInterface; -TiffImagingInterfaceGlobalCopy.schema.source_data = TiffImagingInterfaceSchema; +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; +const MiniscopeImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +MiniscopeImagingInterfaceGlobalCopy.interfaces.interface = MiniscopeImagingInterface +MiniscopeImagingInterfaceGlobalCopy.schema.source_data = MiniscopeImagingInterfaceSchema MiniscopeImagingInterface.args = { activePage, globalState: MiniscopeImagingInterfaceGlobalCopy }; export const SbxImagingInterface = PageTemplate.bind({}); -const SbxImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); -SbxImagingInterfaceGlobalCopy.interfaces.interface = SbxImagingInterface; -SbxImagingInterfaceGlobalCopy.schema.source_data = SbxImagingInterfaceSchema; +const SbxImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +SbxImagingInterfaceGlobalCopy.interfaces.interface = SbxImagingInterface +SbxImagingInterfaceGlobalCopy.schema.source_data = SbxImagingInterfaceSchema SbxImagingInterface.args = { activePage, globalState: SbxImagingInterfaceGlobalCopy }; + +export const MEArecRecordingInterface = PageTemplate.bind({}); +const MEArecRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) +MEArecRecordingInterfaceGlobalCopy.interfaces.interface = MEArecRecordingInterface +MEArecRecordingInterfaceGlobalCopy.schema.source_data = MEArecRecordingInterfaceSchema +MEArecRecordingInterface.args = { activePage, globalState: MEArecRecordingInterfaceGlobalCopy }; + From a4d22530231cc9483a16c3caccca3ab0e37d8269 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 29 Sep 2023 20:20:50 +0000 Subject: [PATCH 09/10] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../generated/BiocamRecordingInterface.json | 2 +- .../BlackrockRecordingInterface.json | 2 +- .../generated/BlackrockSortingInterface.json | 2 +- .../BrukerTiffMultiPlaneImagingInterface.json | 2 +- ...BrukerTiffSinglePlaneImagingInterface.json | 2 +- .../CellExplorerSortingInterface.json | 2 +- .../generated/IntanRecordingInterface.json | 2 +- .../generated/KiloSortSortingInterface.json | 2 +- .../generated/MEArecRecordingInterface.json | 2 +- .../MicroManagerTiffImagingInterface.json | 2 +- .../generated/MiniscopeImagingInterface.json | 2 +- .../generated/NeuroScopeLFPInterface.json | 2 +- .../NeuroScopeRecordingInterface.json | 2 +- .../generated/NeuroScopeSortingInterface.json | 2 +- .../OpenEphysRecordingInterface.json | 2 +- .../json/generated/PhySortingInterface.json | 2 +- .../json/generated/SbxImagingInterface.json | 2 +- .../generated/ScanImageImagingInterface.json | 2 +- .../generated/Spike2RecordingInterface.json | 2 +- .../json/generated/SpikeGLXNIDQInterface.json | 2 +- .../generated/SpikeGLXRecordingInterface.json | 2 +- .../json/generated/TiffImagingInterface.json | 2 +- src/renderer/src/stories/Search.js | 9 +- .../pages/guided-mode/SourceData.stories.js | 267 ++++++++++-------- 24 files changed, 172 insertions(+), 148 deletions(-) diff --git a/schemas/json/generated/BiocamRecordingInterface.json b/schemas/json/generated/BiocamRecordingInterface.json index 3265fe263..8d51c7b06 100644 --- a/schemas/json/generated/BiocamRecordingInterface.json +++ b/schemas/json/generated/BiocamRecordingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/BlackrockRecordingInterface.json b/schemas/json/generated/BlackrockRecordingInterface.json index 32de2a224..25190ebf2 100644 --- a/schemas/json/generated/BlackrockRecordingInterface.json +++ b/schemas/json/generated/BlackrockRecordingInterface.json @@ -35,4 +35,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/BlackrockSortingInterface.json b/schemas/json/generated/BlackrockSortingInterface.json index 1b0b34068..02661e794 100644 --- a/schemas/json/generated/BlackrockSortingInterface.json +++ b/schemas/json/generated/BlackrockSortingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json b/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json index 7ebe1b31e..a4383d177 100644 --- a/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json +++ b/schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json b/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json index 50cea61c2..844834ff9 100644 --- a/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json +++ b/schemas/json/generated/BrukerTiffSinglePlaneImagingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/CellExplorerSortingInterface.json b/schemas/json/generated/CellExplorerSortingInterface.json index e2cc689b1..c51a65d4e 100644 --- a/schemas/json/generated/CellExplorerSortingInterface.json +++ b/schemas/json/generated/CellExplorerSortingInterface.json @@ -26,4 +26,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/IntanRecordingInterface.json b/schemas/json/generated/IntanRecordingInterface.json index b75b39eda..07904ada2 100644 --- a/schemas/json/generated/IntanRecordingInterface.json +++ b/schemas/json/generated/IntanRecordingInterface.json @@ -34,4 +34,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/KiloSortSortingInterface.json b/schemas/json/generated/KiloSortSortingInterface.json index 5ef66d490..a31d22b75 100644 --- a/schemas/json/generated/KiloSortSortingInterface.json +++ b/schemas/json/generated/KiloSortSortingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/MEArecRecordingInterface.json b/schemas/json/generated/MEArecRecordingInterface.json index 25710cb90..b2a4df011 100644 --- a/schemas/json/generated/MEArecRecordingInterface.json +++ b/schemas/json/generated/MEArecRecordingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/MicroManagerTiffImagingInterface.json b/schemas/json/generated/MicroManagerTiffImagingInterface.json index 218c8c281..fb0cd8876 100644 --- a/schemas/json/generated/MicroManagerTiffImagingInterface.json +++ b/schemas/json/generated/MicroManagerTiffImagingInterface.json @@ -27,4 +27,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/MiniscopeImagingInterface.json b/schemas/json/generated/MiniscopeImagingInterface.json index d73ea0721..33171beb5 100644 --- a/schemas/json/generated/MiniscopeImagingInterface.json +++ b/schemas/json/generated/MiniscopeImagingInterface.json @@ -22,4 +22,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/NeuroScopeLFPInterface.json b/schemas/json/generated/NeuroScopeLFPInterface.json index 3c6224cf0..d42a885ab 100644 --- a/schemas/json/generated/NeuroScopeLFPInterface.json +++ b/schemas/json/generated/NeuroScopeLFPInterface.json @@ -29,4 +29,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/NeuroScopeRecordingInterface.json b/schemas/json/generated/NeuroScopeRecordingInterface.json index 2077b287a..3e95a33d0 100644 --- a/schemas/json/generated/NeuroScopeRecordingInterface.json +++ b/schemas/json/generated/NeuroScopeRecordingInterface.json @@ -37,4 +37,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/NeuroScopeSortingInterface.json b/schemas/json/generated/NeuroScopeSortingInterface.json index fe3d76fe6..680fcbce9 100644 --- a/schemas/json/generated/NeuroScopeSortingInterface.json +++ b/schemas/json/generated/NeuroScopeSortingInterface.json @@ -37,4 +37,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/OpenEphysRecordingInterface.json b/schemas/json/generated/OpenEphysRecordingInterface.json index f3affa4d3..f6193ea0c 100644 --- a/schemas/json/generated/OpenEphysRecordingInterface.json +++ b/schemas/json/generated/OpenEphysRecordingInterface.json @@ -33,4 +33,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/PhySortingInterface.json b/schemas/json/generated/PhySortingInterface.json index 182494ca2..edcc2183d 100644 --- a/schemas/json/generated/PhySortingInterface.json +++ b/schemas/json/generated/PhySortingInterface.json @@ -29,4 +29,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/SbxImagingInterface.json b/schemas/json/generated/SbxImagingInterface.json index 8b97044b0..d02d2c0e7 100644 --- a/schemas/json/generated/SbxImagingInterface.json +++ b/schemas/json/generated/SbxImagingInterface.json @@ -29,4 +29,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/ScanImageImagingInterface.json b/schemas/json/generated/ScanImageImagingInterface.json index 26925e9f5..71b3cb59a 100644 --- a/schemas/json/generated/ScanImageImagingInterface.json +++ b/schemas/json/generated/ScanImageImagingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/Spike2RecordingInterface.json b/schemas/json/generated/Spike2RecordingInterface.json index 3b143bf75..81c785ad8 100644 --- a/schemas/json/generated/Spike2RecordingInterface.json +++ b/schemas/json/generated/Spike2RecordingInterface.json @@ -31,4 +31,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/SpikeGLXNIDQInterface.json b/schemas/json/generated/SpikeGLXNIDQInterface.json index 8a38f1387..14ad82eb8 100644 --- a/schemas/json/generated/SpikeGLXNIDQInterface.json +++ b/schemas/json/generated/SpikeGLXNIDQInterface.json @@ -35,4 +35,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/SpikeGLXRecordingInterface.json b/schemas/json/generated/SpikeGLXRecordingInterface.json index 603158605..4b2034df8 100644 --- a/schemas/json/generated/SpikeGLXRecordingInterface.json +++ b/schemas/json/generated/SpikeGLXRecordingInterface.json @@ -30,4 +30,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/schemas/json/generated/TiffImagingInterface.json b/schemas/json/generated/TiffImagingInterface.json index 0cce7efa6..036de528a 100644 --- a/schemas/json/generated/TiffImagingInterface.json +++ b/schemas/json/generated/TiffImagingInterface.json @@ -31,4 +31,4 @@ "title": "Source data schema", "description": "Schema for the source data, files and directories", "version": "0.1.0" -} \ No newline at end of file +} diff --git a/src/renderer/src/stories/Search.js b/src/renderer/src/stories/Search.js index 8148d5de1..9796b7195 100644 --- a/src/renderer/src/stories/Search.js +++ b/src/renderer/src/stories/Search.js @@ -143,11 +143,12 @@ export class Search extends LitElement { this.list.appendChild(li); - return option.disabled - }).map(o => o.value); + return option.disabled; + }) + .map((o) => o.value); - console.warn(`Enabled: ${this.options.length - unsupported.length}/${this.options.length}`) - console.warn('Disabled Options:', unsupported) + console.warn(`Enabled: ${this.options.length - unsupported.length}/${this.options.length}`); + console.warn("Disabled Options:", unsupported); } return html` diff --git a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js index ce064ef03..d26d6e437 100644 --- a/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js +++ b/src/renderer/src/stories/pages/guided-mode/SourceData.stories.js @@ -1,199 +1,222 @@ import { globalState, PageTemplate } from "./storyStates"; -import SpikeGLXRecordingInterfaceSchema from '../../../../../../schemas/json/generated/SpikeGLXRecordingInterface.json' -import SpikeGLXNIDQInterfaceSchema from '../../../../../../schemas/json/generated/SpikeGLXNIDQInterface.json' -import PhySortingInterfaceSchema from '../../../../../../schemas/json/generated/PhySortingInterface.json' -import NeuroScopeRecordingInterfaceSchema from '../../../../../../schemas/json/generated/NeuroScopeRecordingInterface.json' -import NeuroScopeLFPInterfaceSchema from '../../../../../../schemas/json/generated/NeuroScopeLFPInterface.json' -import NeuroScopeSortingInterfaceSchema from '../../../../../../schemas/json/generated/NeuroScopeSortingInterface.json' -import BiocamRecordingInterfaceSchema from '../../../../../../schemas/json/generated/BiocamRecordingInterface.json' -import IntanRecordingInterfaceSchema from '../../../../../../schemas/json/generated/IntanRecordingInterface.json' -import OpenEphysRecordingInterfaceSchema from '../../../../../../schemas/json/generated/OpenEphysRecordingInterface.json' -import BlackrockRecordingInterfaceSchema from '../../../../../../schemas/json/generated/BlackrockRecordingInterface.json' -import BlackrockSortingInterfaceSchema from '../../../../../../schemas/json/generated/BlackrockSortingInterface.json' -import CellExplorerSortingInterfaceSchema from '../../../../../../schemas/json/generated/CellExplorerSortingInterface.json' -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 BrukerTiffMultiPlaneImagingInterfaceSchema from '../../../../../../schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json' -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' -import SbxImagingInterfaceSchema from '../../../../../../schemas/json/generated/SbxImagingInterface.json' -import MEArecRecordingInterfaceSchema from '../../../../../../schemas/json/generated/MEArecRecordingInterface.json' +import SpikeGLXRecordingInterfaceSchema from "../../../../../../schemas/json/generated/SpikeGLXRecordingInterface.json"; +import SpikeGLXNIDQInterfaceSchema from "../../../../../../schemas/json/generated/SpikeGLXNIDQInterface.json"; +import PhySortingInterfaceSchema from "../../../../../../schemas/json/generated/PhySortingInterface.json"; +import NeuroScopeRecordingInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeRecordingInterface.json"; +import NeuroScopeLFPInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeLFPInterface.json"; +import NeuroScopeSortingInterfaceSchema from "../../../../../../schemas/json/generated/NeuroScopeSortingInterface.json"; +import BiocamRecordingInterfaceSchema from "../../../../../../schemas/json/generated/BiocamRecordingInterface.json"; +import IntanRecordingInterfaceSchema from "../../../../../../schemas/json/generated/IntanRecordingInterface.json"; +import OpenEphysRecordingInterfaceSchema from "../../../../../../schemas/json/generated/OpenEphysRecordingInterface.json"; +import BlackrockRecordingInterfaceSchema from "../../../../../../schemas/json/generated/BlackrockRecordingInterface.json"; +import BlackrockSortingInterfaceSchema from "../../../../../../schemas/json/generated/BlackrockSortingInterface.json"; +import CellExplorerSortingInterfaceSchema from "../../../../../../schemas/json/generated/CellExplorerSortingInterface.json"; +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 BrukerTiffMultiPlaneImagingInterfaceSchema from "../../../../../../schemas/json/generated/BrukerTiffMultiPlaneImagingInterface.json"; +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"; +import SbxImagingInterfaceSchema from "../../../../../../schemas/json/generated/SbxImagingInterface.json"; +import MEArecRecordingInterfaceSchema from "../../../../../../schemas/json/generated/MEArecRecordingInterface.json"; export default { title: "Pages/Guided Mode/Source Data", parameters: { chromatic: { disableSnapshot: false }, - } + }, }; -const activePage = "conversion/sourcedata" - - -const globalStateCopy = JSON.parse(JSON.stringify(globalState)) -globalStateCopy.schema.source_data.properties.SpikeGLXRecordingInterface = SpikeGLXRecordingInterfaceSchema.properties.SpikeGLXRecordingInterface -globalStateCopy.schema.source_data.properties.SpikeGLXNIDQInterface = SpikeGLXNIDQInterfaceSchema.properties.SpikeGLXNIDQInterface -globalStateCopy.schema.source_data.properties.PhySortingInterface = PhySortingInterfaceSchema.properties.PhySortingInterface -globalStateCopy.schema.source_data.properties.NeuroScopeRecordingInterface = NeuroScopeRecordingInterfaceSchema.properties.NeuroScopeRecordingInterface -globalStateCopy.schema.source_data.properties.NeuroScopeLFPInterface = NeuroScopeLFPInterfaceSchema.properties.NeuroScopeLFPInterface -globalStateCopy.schema.source_data.properties.NeuroScopeSortingInterface = NeuroScopeSortingInterfaceSchema.properties.NeuroScopeSortingInterface -globalStateCopy.schema.source_data.properties.BiocamRecordingInterface = BiocamRecordingInterfaceSchema.properties.BiocamRecordingInterface -globalStateCopy.schema.source_data.properties.IntanRecordingInterface = IntanRecordingInterfaceSchema.properties.IntanRecordingInterface -globalStateCopy.schema.source_data.properties.OpenEphysRecordingInterface = OpenEphysRecordingInterfaceSchema.properties.OpenEphysRecordingInterface -globalStateCopy.schema.source_data.properties.BlackrockRecordingInterface = BlackrockRecordingInterfaceSchema.properties.BlackrockRecordingInterface -globalStateCopy.schema.source_data.properties.BlackrockSortingInterface = BlackrockSortingInterfaceSchema.properties.BlackrockSortingInterface -globalStateCopy.schema.source_data.properties.CellExplorerSortingInterface = CellExplorerSortingInterfaceSchema.properties.CellExplorerSortingInterface -globalStateCopy.schema.source_data.properties.KiloSortSortingInterface = KiloSortSortingInterfaceSchema.properties.KiloSortSortingInterface -globalStateCopy.schema.source_data.properties.Spike2RecordingInterface = Spike2RecordingInterfaceSchema.properties.Spike2RecordingInterface -globalStateCopy.schema.source_data.properties.BrukerTiffSinglePlaneImagingInterface = BrukerTiffSinglePlaneImagingInterfaceSchema.properties.BrukerTiffSinglePlaneImagingInterface -globalStateCopy.schema.source_data.properties.BrukerTiffMultiPlaneImagingInterface = BrukerTiffMultiPlaneImagingInterfaceSchema.properties.BrukerTiffMultiPlaneImagingInterface -globalStateCopy.schema.source_data.properties.MicroManagerTiffImagingInterface = MicroManagerTiffImagingInterfaceSchema.properties.MicroManagerTiffImagingInterface -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 -globalStateCopy.schema.source_data.properties.SbxImagingInterface = SbxImagingInterfaceSchema.properties.SbxImagingInterface -globalStateCopy.schema.source_data.properties.MEArecRecordingInterface = MEArecRecordingInterfaceSchema.properties.MEArecRecordingInterface - -const results = globalStateCopy.results -for (let sub in results){ - for (let ses in results[sub]) results[sub][ses].source_data = {SpikeGLXNIDQInterface: {file_path: '/dummy/file/path'}} +const activePage = "conversion/sourcedata"; + +const globalStateCopy = JSON.parse(JSON.stringify(globalState)); +globalStateCopy.schema.source_data.properties.SpikeGLXRecordingInterface = + SpikeGLXRecordingInterfaceSchema.properties.SpikeGLXRecordingInterface; +globalStateCopy.schema.source_data.properties.SpikeGLXNIDQInterface = + SpikeGLXNIDQInterfaceSchema.properties.SpikeGLXNIDQInterface; +globalStateCopy.schema.source_data.properties.PhySortingInterface = + PhySortingInterfaceSchema.properties.PhySortingInterface; +globalStateCopy.schema.source_data.properties.NeuroScopeRecordingInterface = + NeuroScopeRecordingInterfaceSchema.properties.NeuroScopeRecordingInterface; +globalStateCopy.schema.source_data.properties.NeuroScopeLFPInterface = + NeuroScopeLFPInterfaceSchema.properties.NeuroScopeLFPInterface; +globalStateCopy.schema.source_data.properties.NeuroScopeSortingInterface = + NeuroScopeSortingInterfaceSchema.properties.NeuroScopeSortingInterface; +globalStateCopy.schema.source_data.properties.BiocamRecordingInterface = + BiocamRecordingInterfaceSchema.properties.BiocamRecordingInterface; +globalStateCopy.schema.source_data.properties.IntanRecordingInterface = + IntanRecordingInterfaceSchema.properties.IntanRecordingInterface; +globalStateCopy.schema.source_data.properties.OpenEphysRecordingInterface = + OpenEphysRecordingInterfaceSchema.properties.OpenEphysRecordingInterface; +globalStateCopy.schema.source_data.properties.BlackrockRecordingInterface = + BlackrockRecordingInterfaceSchema.properties.BlackrockRecordingInterface; +globalStateCopy.schema.source_data.properties.BlackrockSortingInterface = + BlackrockSortingInterfaceSchema.properties.BlackrockSortingInterface; +globalStateCopy.schema.source_data.properties.CellExplorerSortingInterface = + CellExplorerSortingInterfaceSchema.properties.CellExplorerSortingInterface; +globalStateCopy.schema.source_data.properties.KiloSortSortingInterface = + KiloSortSortingInterfaceSchema.properties.KiloSortSortingInterface; +globalStateCopy.schema.source_data.properties.Spike2RecordingInterface = + Spike2RecordingInterfaceSchema.properties.Spike2RecordingInterface; +globalStateCopy.schema.source_data.properties.BrukerTiffSinglePlaneImagingInterface = + BrukerTiffSinglePlaneImagingInterfaceSchema.properties.BrukerTiffSinglePlaneImagingInterface; +globalStateCopy.schema.source_data.properties.BrukerTiffMultiPlaneImagingInterface = + BrukerTiffMultiPlaneImagingInterfaceSchema.properties.BrukerTiffMultiPlaneImagingInterface; +globalStateCopy.schema.source_data.properties.MicroManagerTiffImagingInterface = + MicroManagerTiffImagingInterfaceSchema.properties.MicroManagerTiffImagingInterface; +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; +globalStateCopy.schema.source_data.properties.SbxImagingInterface = + SbxImagingInterfaceSchema.properties.SbxImagingInterface; +globalStateCopy.schema.source_data.properties.MEArecRecordingInterface = + MEArecRecordingInterfaceSchema.properties.MEArecRecordingInterface; + +const results = globalStateCopy.results; +for (let sub in results) { + for (let ses in results[sub]) + results[sub][ses].source_data = { SpikeGLXNIDQInterface: { file_path: "/dummy/file/path" } }; } - export const All = PageTemplate.bind({}); All.args = { activePage, globalState: globalStateCopy }; export const SpikeGLXRecordingInterface = PageTemplate.bind({}); -const SpikeGLXRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -SpikeGLXRecordingInterfaceGlobalCopy.interfaces.interface = SpikeGLXRecordingInterface -SpikeGLXRecordingInterfaceGlobalCopy.schema.source_data = SpikeGLXRecordingInterfaceSchema +const SpikeGLXRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +SpikeGLXRecordingInterfaceGlobalCopy.interfaces.interface = SpikeGLXRecordingInterface; +SpikeGLXRecordingInterfaceGlobalCopy.schema.source_data = SpikeGLXRecordingInterfaceSchema; SpikeGLXRecordingInterface.args = { activePage, globalState: SpikeGLXRecordingInterfaceGlobalCopy }; export const SpikeGLXNIDQInterface = PageTemplate.bind({}); -const SpikeGLXNIDQInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -SpikeGLXNIDQInterfaceGlobalCopy.interfaces.interface = SpikeGLXNIDQInterface -SpikeGLXNIDQInterfaceGlobalCopy.schema.source_data = SpikeGLXNIDQInterfaceSchema +const SpikeGLXNIDQInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +SpikeGLXNIDQInterfaceGlobalCopy.interfaces.interface = SpikeGLXNIDQInterface; +SpikeGLXNIDQInterfaceGlobalCopy.schema.source_data = SpikeGLXNIDQInterfaceSchema; SpikeGLXNIDQInterface.args = { activePage, globalState: SpikeGLXNIDQInterfaceGlobalCopy }; export const PhySortingInterface = PageTemplate.bind({}); -const PhySortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -PhySortingInterfaceGlobalCopy.interfaces.interface = PhySortingInterface -PhySortingInterfaceGlobalCopy.schema.source_data = PhySortingInterfaceSchema +const PhySortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +PhySortingInterfaceGlobalCopy.interfaces.interface = PhySortingInterface; +PhySortingInterfaceGlobalCopy.schema.source_data = PhySortingInterfaceSchema; PhySortingInterface.args = { activePage, globalState: PhySortingInterfaceGlobalCopy }; export const NeuroScopeRecordingInterface = PageTemplate.bind({}); -const NeuroScopeRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -NeuroScopeRecordingInterfaceGlobalCopy.interfaces.interface = NeuroScopeRecordingInterface -NeuroScopeRecordingInterfaceGlobalCopy.schema.source_data = NeuroScopeRecordingInterfaceSchema +const NeuroScopeRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +NeuroScopeRecordingInterfaceGlobalCopy.interfaces.interface = NeuroScopeRecordingInterface; +NeuroScopeRecordingInterfaceGlobalCopy.schema.source_data = NeuroScopeRecordingInterfaceSchema; NeuroScopeRecordingInterface.args = { activePage, globalState: NeuroScopeRecordingInterfaceGlobalCopy }; export const NeuroScopeLFPInterface = PageTemplate.bind({}); -const NeuroScopeLFPInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -NeuroScopeLFPInterfaceGlobalCopy.interfaces.interface = NeuroScopeLFPInterface -NeuroScopeLFPInterfaceGlobalCopy.schema.source_data = NeuroScopeLFPInterfaceSchema +const NeuroScopeLFPInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +NeuroScopeLFPInterfaceGlobalCopy.interfaces.interface = NeuroScopeLFPInterface; +NeuroScopeLFPInterfaceGlobalCopy.schema.source_data = NeuroScopeLFPInterfaceSchema; NeuroScopeLFPInterface.args = { activePage, globalState: NeuroScopeLFPInterfaceGlobalCopy }; export const NeuroScopeSortingInterface = PageTemplate.bind({}); -const NeuroScopeSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -NeuroScopeSortingInterfaceGlobalCopy.interfaces.interface = NeuroScopeSortingInterface -NeuroScopeSortingInterfaceGlobalCopy.schema.source_data = NeuroScopeSortingInterfaceSchema +const NeuroScopeSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +NeuroScopeSortingInterfaceGlobalCopy.interfaces.interface = NeuroScopeSortingInterface; +NeuroScopeSortingInterfaceGlobalCopy.schema.source_data = NeuroScopeSortingInterfaceSchema; NeuroScopeSortingInterface.args = { activePage, globalState: NeuroScopeSortingInterfaceGlobalCopy }; export const BiocamRecordingInterface = PageTemplate.bind({}); -const BiocamRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -BiocamRecordingInterfaceGlobalCopy.interfaces.interface = BiocamRecordingInterface -BiocamRecordingInterfaceGlobalCopy.schema.source_data = BiocamRecordingInterfaceSchema +const BiocamRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +BiocamRecordingInterfaceGlobalCopy.interfaces.interface = BiocamRecordingInterface; +BiocamRecordingInterfaceGlobalCopy.schema.source_data = BiocamRecordingInterfaceSchema; BiocamRecordingInterface.args = { activePage, globalState: BiocamRecordingInterfaceGlobalCopy }; export const IntanRecordingInterface = PageTemplate.bind({}); -const IntanRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -IntanRecordingInterfaceGlobalCopy.interfaces.interface = IntanRecordingInterface -IntanRecordingInterfaceGlobalCopy.schema.source_data = IntanRecordingInterfaceSchema +const IntanRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +IntanRecordingInterfaceGlobalCopy.interfaces.interface = IntanRecordingInterface; +IntanRecordingInterfaceGlobalCopy.schema.source_data = IntanRecordingInterfaceSchema; IntanRecordingInterface.args = { activePage, globalState: IntanRecordingInterfaceGlobalCopy }; export const OpenEphysRecordingInterface = PageTemplate.bind({}); -const OpenEphysRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -OpenEphysRecordingInterfaceGlobalCopy.interfaces.interface = OpenEphysRecordingInterface -OpenEphysRecordingInterfaceGlobalCopy.schema.source_data = OpenEphysRecordingInterfaceSchema +const OpenEphysRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +OpenEphysRecordingInterfaceGlobalCopy.interfaces.interface = OpenEphysRecordingInterface; +OpenEphysRecordingInterfaceGlobalCopy.schema.source_data = OpenEphysRecordingInterfaceSchema; OpenEphysRecordingInterface.args = { activePage, globalState: OpenEphysRecordingInterfaceGlobalCopy }; export const BlackrockRecordingInterface = PageTemplate.bind({}); -const BlackrockRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -BlackrockRecordingInterfaceGlobalCopy.interfaces.interface = BlackrockRecordingInterface -BlackrockRecordingInterfaceGlobalCopy.schema.source_data = BlackrockRecordingInterfaceSchema +const BlackrockRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +BlackrockRecordingInterfaceGlobalCopy.interfaces.interface = BlackrockRecordingInterface; +BlackrockRecordingInterfaceGlobalCopy.schema.source_data = BlackrockRecordingInterfaceSchema; BlackrockRecordingInterface.args = { activePage, globalState: BlackrockRecordingInterfaceGlobalCopy }; export const BlackrockSortingInterface = PageTemplate.bind({}); -const BlackrockSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -BlackrockSortingInterfaceGlobalCopy.interfaces.interface = BlackrockSortingInterface -BlackrockSortingInterfaceGlobalCopy.schema.source_data = BlackrockSortingInterfaceSchema +const BlackrockSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +BlackrockSortingInterfaceGlobalCopy.interfaces.interface = BlackrockSortingInterface; +BlackrockSortingInterfaceGlobalCopy.schema.source_data = BlackrockSortingInterfaceSchema; BlackrockSortingInterface.args = { activePage, globalState: BlackrockSortingInterfaceGlobalCopy }; export const CellExplorerSortingInterface = PageTemplate.bind({}); -const CellExplorerSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -CellExplorerSortingInterfaceGlobalCopy.interfaces.interface = CellExplorerSortingInterface -CellExplorerSortingInterfaceGlobalCopy.schema.source_data = CellExplorerSortingInterfaceSchema +const CellExplorerSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +CellExplorerSortingInterfaceGlobalCopy.interfaces.interface = CellExplorerSortingInterface; +CellExplorerSortingInterfaceGlobalCopy.schema.source_data = CellExplorerSortingInterfaceSchema; CellExplorerSortingInterface.args = { activePage, globalState: CellExplorerSortingInterfaceGlobalCopy }; export const KiloSortSortingInterface = PageTemplate.bind({}); -const KiloSortSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -KiloSortSortingInterfaceGlobalCopy.interfaces.interface = KiloSortSortingInterface -KiloSortSortingInterfaceGlobalCopy.schema.source_data = KiloSortSortingInterfaceSchema +const KiloSortSortingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +KiloSortSortingInterfaceGlobalCopy.interfaces.interface = KiloSortSortingInterface; +KiloSortSortingInterfaceGlobalCopy.schema.source_data = KiloSortSortingInterfaceSchema; KiloSortSortingInterface.args = { activePage, globalState: KiloSortSortingInterfaceGlobalCopy }; export const Spike2RecordingInterface = PageTemplate.bind({}); -const Spike2RecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -Spike2RecordingInterfaceGlobalCopy.interfaces.interface = Spike2RecordingInterface -Spike2RecordingInterfaceGlobalCopy.schema.source_data = Spike2RecordingInterfaceSchema +const Spike2RecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +Spike2RecordingInterfaceGlobalCopy.interfaces.interface = Spike2RecordingInterface; +Spike2RecordingInterfaceGlobalCopy.schema.source_data = Spike2RecordingInterfaceSchema; Spike2RecordingInterface.args = { activePage, globalState: Spike2RecordingInterfaceGlobalCopy }; export const BrukerTiffSinglePlaneImagingInterface = PageTemplate.bind({}); -const BrukerTiffSinglePlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffSinglePlaneImagingInterface -BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffSinglePlaneImagingInterfaceSchema -BrukerTiffSinglePlaneImagingInterface.args = { activePage, globalState: BrukerTiffSinglePlaneImagingInterfaceGlobalCopy }; +const BrukerTiffSinglePlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffSinglePlaneImagingInterface; +BrukerTiffSinglePlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffSinglePlaneImagingInterfaceSchema; +BrukerTiffSinglePlaneImagingInterface.args = { + activePage, + globalState: BrukerTiffSinglePlaneImagingInterfaceGlobalCopy, +}; export const BrukerTiffMultiPlaneImagingInterface = PageTemplate.bind({}); -const BrukerTiffMultiPlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffMultiPlaneImagingInterface -BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffMultiPlaneImagingInterfaceSchema +const BrukerTiffMultiPlaneImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.interfaces.interface = BrukerTiffMultiPlaneImagingInterface; +BrukerTiffMultiPlaneImagingInterfaceGlobalCopy.schema.source_data = BrukerTiffMultiPlaneImagingInterfaceSchema; BrukerTiffMultiPlaneImagingInterface.args = { activePage, globalState: BrukerTiffMultiPlaneImagingInterfaceGlobalCopy }; export const MicroManagerTiffImagingInterface = PageTemplate.bind({}); -const MicroManagerTiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -MicroManagerTiffImagingInterfaceGlobalCopy.interfaces.interface = MicroManagerTiffImagingInterface -MicroManagerTiffImagingInterfaceGlobalCopy.schema.source_data = MicroManagerTiffImagingInterfaceSchema +const MicroManagerTiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +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 +const ScanImageImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +ScanImageImagingInterfaceGlobalCopy.interfaces.interface = ScanImageImagingInterface; +ScanImageImagingInterfaceGlobalCopy.schema.source_data = ScanImageImagingInterfaceSchema; ScanImageImagingInterface.args = { activePage, globalState: ScanImageImagingInterfaceGlobalCopy }; export const TiffImagingInterface = PageTemplate.bind({}); -const TiffImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -TiffImagingInterfaceGlobalCopy.interfaces.interface = TiffImagingInterface -TiffImagingInterfaceGlobalCopy.schema.source_data = TiffImagingInterfaceSchema +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 +const MiniscopeImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +MiniscopeImagingInterfaceGlobalCopy.interfaces.interface = MiniscopeImagingInterface; +MiniscopeImagingInterfaceGlobalCopy.schema.source_data = MiniscopeImagingInterfaceSchema; MiniscopeImagingInterface.args = { activePage, globalState: MiniscopeImagingInterfaceGlobalCopy }; export const SbxImagingInterface = PageTemplate.bind({}); -const SbxImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -SbxImagingInterfaceGlobalCopy.interfaces.interface = SbxImagingInterface -SbxImagingInterfaceGlobalCopy.schema.source_data = SbxImagingInterfaceSchema +const SbxImagingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +SbxImagingInterfaceGlobalCopy.interfaces.interface = SbxImagingInterface; +SbxImagingInterfaceGlobalCopy.schema.source_data = SbxImagingInterfaceSchema; SbxImagingInterface.args = { activePage, globalState: SbxImagingInterfaceGlobalCopy }; export const MEArecRecordingInterface = PageTemplate.bind({}); -const MEArecRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)) -MEArecRecordingInterfaceGlobalCopy.interfaces.interface = MEArecRecordingInterface -MEArecRecordingInterfaceGlobalCopy.schema.source_data = MEArecRecordingInterfaceSchema +const MEArecRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState)); +MEArecRecordingInterfaceGlobalCopy.interfaces.interface = MEArecRecordingInterface; +MEArecRecordingInterfaceGlobalCopy.schema.source_data = MEArecRecordingInterfaceSchema; MEArecRecordingInterface.args = { activePage, globalState: MEArecRecordingInterfaceGlobalCopy }; - From 7853b814e66b16d3bd4767ef121057e29411fc6f Mon Sep 17 00:00:00 2001 From: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com> Date: Sat, 30 Sep 2023 15:30:20 -0400 Subject: [PATCH 10/10] version bump for alpha testing release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5a447d003..0801a4dc7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nwb-guide", "productName": "NWB GUIDE", - "version": "0.0.5", + "version": "0.0.6", "description": "", "main": "./build/main/main.js", "engine": {