MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / extract_vertical_alignment

Function extract_vertical_alignment

utils/config_utils.py:145–157  ·  view source on GitHub ↗

Extract vertical alignment configuration from YAML config. Args: yaml_cfg: YAML configuration dictionary Returns: Vertical alignment string ("top", "middle", or "bottom") or None

(yaml_cfg: Dict[str, Any])

Source from the content-addressed store, hash-verified

143
144
145def extract_vertical_alignment(yaml_cfg: Dict[str, Any]) -> Optional[str]:
146 """
147 Extract vertical alignment configuration from YAML config.
148
149 Args:
150 yaml_cfg: YAML configuration dictionary
151
152 Returns:
153 Vertical alignment string ("top", "middle", or "bottom") or None
154 """
155 if not isinstance(yaml_cfg, dict):
156 return None
157 return yaml_cfg.get('section_title_vertical_align')
158
159
160def extract_section_title_symbol(yaml_cfg: Dict[str, Any]) -> str:

Callers 1

new_pipeline.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected