You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apply PYTHON_PORTING_GUIDE to ndi.epoch.* and ndi.ontology.*
Add @pydantic.validate_call to all public functions and methods in
ndi.epoch and ndi.ontology modules per the porting guide's mandatory
Pydantic input validation rule (Section 4).
Changes:
- epoch.py: Add @validate_call to is_epoch_or_empty()
- epochprobemap.py: Add @validate_call to parse_devicestring(),
build_devicestring(); export them from __init__.py
- epochprobemap_daqsystem.py: Add @validate_call to savetofile()
- epochset.py: Add @validate_call with Annotated[int, Field(ge=1)]
constraints on epochclock(), t0_t1(), epochid(), epochnumber(),
epochtableentry(); move ClockType to runtime import
- functions.py: Add @validate_call to epochrange(), findepochnode()
with ConfigDict(arbitrary_types_allowed=True)
- ontology/__init__.py: Add @validate_call to lookup(); remove
unused imports (lru_cache, Path, Dict, List, Optional, Tuple)
- ontology/providers.py: Add @validate_call to lookup_term() on
OntologyProvider base class and all 11 provider subclasses
All 112 tests pass. Ruff and Black clean.
https://claude.ai/code/session_01RoNGaAUDsDLzPLhMLVutbZ
0 commit comments