Return a code cell that sets ``FEAST_FS_YAML`` to the absolute path of the feature-store config resolved at generation time.
(yaml_abs: str)
| 212 | |
| 213 | |
| 214 | def _path_setup_cell(yaml_abs: str) -> dict[str, Any]: |
| 215 | """Return a code cell that sets ``FEAST_FS_YAML`` to the absolute path of |
| 216 | the feature-store config resolved at generation time.""" |
| 217 | return _code( |
| 218 | "import os\n" |
| 219 | "\n" |
| 220 | f"FEAST_FS_YAML = r{repr(yaml_abs)}\n" |
| 221 | "\n" |
| 222 | "assert os.path.exists(FEAST_FS_YAML), (\n" |
| 223 | " f'Config not found at {FEAST_FS_YAML!r}. '\n" |
| 224 | " 'Update FEAST_FS_YAML to the correct path.'\n" |
| 225 | ")\n" |
| 226 | "print(f'Using feature_store.yaml: {FEAST_FS_YAML}')", |
| 227 | tags=["parameters"], |
| 228 | ) |
| 229 | |
| 230 | |
| 231 | def _nb_overview(info: dict[str, Any], yaml_abs: str) -> dict[str, Any]: |
no test coverage detected