Skip to content

Commit 5224d1a

Browse files
committed
Add first try at Plexon2RecordingInterface
1 parent 637d624 commit 5224d1a

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

src/supported_interfaces.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@
4444
"BrukerTiffSinglePlaneConverter",
4545
"BrukerTiffMultiPlaneConverter",
4646
"MiniscopeConverter",
47-
"CellExplorerRecordingInterface"
47+
"CellExplorerRecordingInterface",
48+
"Plexon2RecordingInterface"
4849
]
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"required": [],
3+
"properties": {
4+
"Plexon2RecordingInterface": {
5+
"properties": {
6+
"file_path": {
7+
"format": "file-path",
8+
"type": "string",
9+
"description": "Path to the .pl2 file."
10+
},
11+
"verbose": {
12+
"default": true,
13+
"type": "boolean"
14+
},
15+
"es_key": {
16+
"default": "ElectricalSeries",
17+
"type": "string"
18+
}
19+
},
20+
"required": [
21+
"file_path"
22+
],
23+
"type": "object",
24+
"additionalProperties": false
25+
}
26+
},
27+
"type": "object",
28+
"additionalProperties": false,
29+
"$schema": "http://json-schema.org/draft-07/schema#",
30+
"$id": "source.schema.json",
31+
"title": "Source data schema",
32+
"description": "Schema for the source data, files and directories",
33+
"version": "0.1.0"
34+
}

stories/pages/SourceData.stories.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import BrukerTiffSinglePlaneConverterSchema from "../inputs/interface_schemas/Br
4444
import BrukerTiffMultiPlaneConverterSchema from "../inputs/interface_schemas/BrukerTiffMultiPlaneConverter.json";
4545
import MiniscopeConverterSchema from "../inputs/interface_schemas/MiniscopeConverter.json";
4646
import CellExplorerRecordingInterfaceSchema from "../inputs/interface_schemas/CellExplorerRecordingInterface.json";
47+
import Plexon2RecordingInterfaceSchema from "../inputs/interface_schemas/Plexon2RecordingInterface.json";
4748

4849
export default {
4950
title: "Pages/Guided Mode/Source Data",
@@ -142,6 +143,8 @@ globalStateCopy.schema.source_data.properties.MiniscopeConverter =
142143
MiniscopeConverterSchema.properties.MiniscopeConverter;
143144
globalStateCopy.schema.source_data.properties.CellExplorerRecordingInterface =
144145
CellExplorerRecordingInterfaceSchema.properties.CellExplorerRecordingInterface;
146+
globalStateCopy.schema.source_data.properties.Plexon2RecordingInterface =
147+
Plexon2RecordingInterfaceSchema.properties.Plexon2RecordingInterface;
145148

146149
const results = globalStateCopy.results;
147150
for (let sub in results) {
@@ -424,3 +427,9 @@ const CellExplorerRecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globa
424427
CellExplorerRecordingInterfaceGlobalCopy.interfaces.interface = CellExplorerRecordingInterface;
425428
CellExplorerRecordingInterfaceGlobalCopy.schema.source_data = CellExplorerRecordingInterfaceSchema;
426429
CellExplorerRecordingInterface.args = { activePage, globalState: CellExplorerRecordingInterfaceGlobalCopy };
430+
431+
export const Plexon2RecordingInterface = PageTemplate.bind({});
432+
const Plexon2RecordingInterfaceGlobalCopy = JSON.parse(JSON.stringify(globalState));
433+
Plexon2RecordingInterfaceGlobalCopy.interfaces.interface = Plexon2RecordingInterface;
434+
Plexon2RecordingInterfaceGlobalCopy.schema.source_data = Plexon2RecordingInterfaceSchema;
435+
Plexon2RecordingInterface.args = { activePage, globalState: Plexon2RecordingInterfaceGlobalCopy };

0 commit comments

Comments
 (0)