MCPcopy Create free account
hub / github.com/openai/plugins / _rel

Function _rel

plugins/ngs-analysis/scripts/ngs_epigenomics_utils.py:118–122  ·  view source on GitHub ↗
(path: Path, run_dir: Path)

Source from the content-addressed store, hash-verified

116
117
118def _rel(path: Path, run_dir: Path) -> str:
119 try:
120 return str(path.relative_to(run_dir))
121 except ValueError:
122 return str(path)
123
124
125def _to_float(value: Any) -> float | None:

Calls

no outgoing calls

Tested by

no test coverage detected