Skip to content

Commit

Permalink
Merge pull request #414 from NeurodataWithoutBorders/MCSRawRecording
Browse files Browse the repository at this point in the history
Add MCSRawRecordingInterface
  • Loading branch information
CodyCBakerPhD authored Sep 29, 2023
2 parents 7498dcf + 2a360be commit dd3e3b4
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 5 deletions.
3 changes: 2 additions & 1 deletion guideGlobalMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"ScanImageImagingInterface",
"TiffImagingInterface",
"MiniscopeImagingInterface",
"SbxImagingInterface"
"SbxImagingInterface",
"MCSRawRecordingInterface"
]
}
33 changes: 33 additions & 0 deletions schemas/json/generated/MCSRawRecordingInterface.json
Original file line number Diff line number Diff line change
@@ -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"
}
9 changes: 5 additions & 4 deletions src/renderer/src/stories/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import ScanImageImagingInterfaceSchema from "../../../../../../schemas/json/gene
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",
Expand Down Expand Up @@ -73,6 +74,8 @@ 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) {
Expand Down Expand Up @@ -211,3 +214,9 @@ 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 };

0 comments on commit dd3e3b4

Please sign in to comment.