Commit 118a746
authored
Add fiber app to metadata portal (#55)
This PR adds a fiber viewer app to {metadata portal url}/fiber_viewer.
This pulls fiber locations from the metadata service, the displays fiber
names and locations in a top down view. For example:
<img width="806" height="995" alt="image"
src="https://github.com/user-attachments/assets/485b047c-1255-4453-b67d-7c5c2aa703d8"
/>
This is designed to limit the possibility that scientists/RAs at the rig
inadvertently plug the a patch cable to the wrong implanted fiber.
Queries to the metadata service are slow, so first time views take about
30 seconds. Procedures records are cached so subsequent calls for the
same mouse are fast.
To test the PR:
* check out this branch: `git checkout add_fiber_app`
* run the panel app locally: `uv run panel serve
src/aind_metadata_viz/fiber_viewer.py --show --autoreload`
* enter a mouse id (e.g. 804434, 804430, 813992). Mice without fiber
implants will return an error.File tree
5 files changed
+1035
-1
lines changed- src/aind_metadata_viz
5 files changed
+1035
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments