-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bruker-single-converter
- Loading branch information
Showing
6 changed files
with
26 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
import baseMetadataSchema from './json/base_metadata_schema.json' assert { type: "json" } | ||
|
||
baseMetadataSchema.properties.Subject.properties.weight.unit = 'kg' // Add unit to weight | ||
export const preprocessMetadataSchema = (schema: any = baseMetadataSchema) => { | ||
|
||
// Add unit to weight | ||
schema.properties.Subject.properties.weight.unit = 'kg' | ||
|
||
export default baseMetadataSchema | ||
// Override description of keywords | ||
schema.properties.NWBFile.properties.keywords.description = 'Terms to describe your dataset (e.g. Neural circuits, V1, etc.)' // Add description to keywords | ||
return schema | ||
|
||
} | ||
|
||
export default preprocessMetadataSchema() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
// import { merge } from "../src/renderer/src/stories/pages/utils" | ||
|
||
export default function getSourceDataSchema (schema) { | ||
// const copy = merge(schema, {}) | ||
export default function preprocessSourceDataSchema (schema) { | ||
|
||
// Abstract across different interfaces | ||
Object.values(schema.properties ?? {}).forEach((schema: any) => { | ||
if (schema.properties.gain) schema.properties.gain.step = null // Do not show steps | ||
|
||
// Do not show steps | ||
if (schema.properties.gain) schema.properties.gain.step = null | ||
|
||
// Add description to exclude_cluster_groups | ||
if (schema.properties.exclude_cluster_groups) schema.properties.exclude_cluster_groups.description = 'Cluster groups to exclude (e.g. "noise" or ["noise", "mua"]).' | ||
|
||
}) | ||
|
||
|
||
return schema | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters