G-Cubed
Python G-Cubed 5.0.2.0 · build 1
Generation details
Source revision
4c4a95aded1b5ca5e8f9c292ad8250440cd9c18b (modified inputs)
Source fingerprint
e2c719b38e03c6b1748f10e26bc1caf1ead5674dd1beee6628a6ccf7b90fd39b
Generated (UTC)
2026-11-11T03:06:22.844261+00:00
Generator
pdoc 16.0.0, CPython 3.14.8
Generation metadata

gcubed.projections.design_files

Public design-file parsing and writing API for projection workflows.

class DesignFileError(builtins.ValueError):

Raised when a design document violates its serialization contract.

Inherited Members
builtins.BaseException
BaseException
with_traceback
add_note
args
@dataclass(frozen=True)
class DesignLayerRecord:

One ordered layer entry before model-specific materialisation.

DesignLayerRecord( name: str, data_file: str, event_year: int, description: str | None = None)
name: str
data_file: str
event_year: int
description: str | None = None
effective_description: str

Return the display description, falling back to the layer name.

def load_design_yaml( filename: pathlib.Path) -> tuple[DesignLayerRecord, ...]:

Strictly parse and validate a version-1 YAML design document.

def render_design_yaml( layers: Iterable[DesignLayerRecord | Mapping[str, object]]) -> str:

Render ordered records or layer mappings as canonical version-1 YAML.

def write_design_yaml( design_path: pathlib.Path, layers: Iterable[DesignLayerRecord | Mapping[str, object]], *, overwrite: bool = False) -> None:

Atomically write and validate a canonical version-1 YAML design.