semvec/pypi-packages huggingface dataset:
npc-shields 0.1.5
Tools for Neuropixels probe insertion: providing suggested targets, recording actual insertions, storing notes.
License: MIT
Requires Python: >=3.9

# npc_shields

[![PyPI](https://img.shields.io/pypi/v/npc-shields.svg?label=PyPI&color=blue)](https://pypi.org/project/npc-shields/)
[![Python version](https://img.shields.io/pypi/pyversions/npc-shields)](https://pypi.org/project/npc-shields/)

[![Coverage](https://img.shields.io/codecov/c/github/alleninstitute/npc_shields?logo=codecov)](https://app.codecov.io/github/AllenInstitute/npc_shields)
[![CI/CD](https://img.shields.io/github/actions/workflow/status/alleninstitute/npc_shields/publish.yml?label=CI/CD&logo=github)](https://github.com/alleninstitute/npc_shields/actions/workflows/publish.yml)
[![GitHub issues](https://img.shields.io/github/issues/alleninstitute/npc_shields?logo=github)](https://github.com/alleninstitute/npc_shields/issues)

Tools for Neuropixels probe insertion into SHIELD implants: providing suggested targets, recording actual insertions, storing notes.

## creating new implant drawings
### export 2D view of 3D model
- get a .sldpart CAD model from MPE
- open in Solidworks
- rotate the view to face the top of the implant, matching the view from the rig scope
- Save As -> .dxf
- check "current" view only

### edit 2D drawing for widget
- open a copy of one of the existing .svg drawings in Inkscape/Illustrator, to use the same page size and colors
- add the new .dxf file 
- if the lines are too thick to see any detail, change them to 1pt for now
- resize the new drawing to fill the page, like the existing drawing
- with the two drawings side by side, update the new drawing to match:
  - the outline is fragmented and needs to be joined together so a white fill can be applied
  - holes that have straight edges will need joining to be fill-able
  - circular holes should already be fill-able
  - check the CAD model for probe-letter designations (A1, A2, B1, ...)
- when finished, export as .svg