Skip to content

Commit

Permalink
Fix storybook rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Jun 4, 2024
1 parent 5b5c31c commit 1a36ef6
Show file tree
Hide file tree
Showing 47 changed files with 429 additions and 472 deletions.
2 changes: 1 addition & 1 deletion generateInterfaceSchema.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CustomNWBConverter(NWBConverter):
sourceDataStoryPath = Path("stories/pages/SourceData.stories.js")

importCode = "\n".join(
map(lambda arr: f"import {arr[0]}Schema from '../inputs/interface_schemas/{arr[1]}'", paths.items())
map(lambda arr: f"import {arr[0]}Schema from '../{Path(*arr[1].parts[1:])}'", paths.items())
)
storyCode = "\n".join(
map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
2 changes: 1 addition & 1 deletion stories/inputs/interface_schemas/AudioInterface.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
2 changes: 1 addition & 1 deletion stories/inputs/interface_schemas/DeepLabCutInterface.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
2 changes: 1 addition & 1 deletion stories/inputs/interface_schemas/FicTracDataInterface.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
2 changes: 1 addition & 1 deletion stories/inputs/interface_schemas/MiniscopeConverter.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
2 changes: 1 addition & 1 deletion stories/inputs/interface_schemas/PhySortingInterface.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
2 changes: 1 addition & 1 deletion stories/inputs/interface_schemas/SLEAPInterface.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
2 changes: 1 addition & 1 deletion stories/inputs/interface_schemas/SbxImagingInterface.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
2 changes: 1 addition & 1 deletion stories/inputs/interface_schemas/TiffImagingInterface.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
2 changes: 1 addition & 1 deletion stories/inputs/interface_schemas/VideoInterface.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"title": "Source data schema",
"description": "Schema for the source data, files and directories",
"version": "0.1.0"
}
}
Loading

0 comments on commit 1a36ef6

Please sign in to comment.