piker/piker/data
Gud Boi 0a2059d00f Use `tractor.ipc._shm` types directly across codebase
Port all 16 internal import sites from re-exporting
via `piker.data._sharedmem` shim to importing core
shm types directly from `tractor.ipc._shm`.

Deats,
- `ShmArray` now imported from tractor in 10 files.
- `_Token` renamed to `NDToken` everywhere (5 files).
- `attach_shm_array` → `attach_shm_ndarray` at all
  call sites.
- `data/__init__.py` sources `ShmArray`,
  `get_shm_token` from tractor; keeps
  `open/attach_shm_array` as public API aliases.
- Trim shim to only piker-specific wrappers:
  `_make_token()`, `maybe_open_shm_array()`,
  `try_read()`.
- Drop `Optional` usage in shim, use `|None`.

(this patch was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-03-17 18:00:29 -04:00
..
__init__.py Use `tractor.ipc._shm` types directly across codebase 2026-03-17 18:00:29 -04:00
_formatters.py Use `tractor.ipc._shm` types directly across codebase 2026-03-17 18:00:29 -04:00
_m4.py Add subsys log to new `.data._util` 2023-05-09 14:49:26 -04:00
_pathops.py .data._pathops: drop profiler imports, fix some naming to appease `ruff` 2023-07-20 15:27:22 -04:00
_sampling.py Use `tractor.ipc._shm` types directly across codebase 2026-03-17 18:00:29 -04:00
_sharedmem.py Use `tractor.ipc._shm` types directly across codebase 2026-03-17 18:00:29 -04:00
_source.py Drop `bar_wap` from default ohlc field set 2023-06-27 13:41:47 -04:00
_symcache.py `data._symcache`, impl a summary `.__repr__()`, avoids `Asset` causality issues 2026-01-06 19:33:23 -05:00
_util.py Adjust `tractor.log` API compat 2026-02-23 12:22:48 -05:00
_web_bs.py Wrap `open_autorecon_ws()` body for comms failures 2026-02-22 20:08:20 -05:00
feed.py Drop info-level `.pause()`-es used while devving 2026-02-23 13:26:46 -05:00
flows.py Use `tractor.ipc._shm` types directly across codebase 2026-03-17 18:00:29 -04:00
ingest.py Add subsys log to new `.data._util` 2023-05-09 14:49:26 -04:00
ticktools.py .data.ticktools: add reverse flag, better docs 2023-06-27 15:47:05 -04:00
validate.py Teensie `piker.data` styling tweaks 2026-01-06 19:33:23 -05:00