get_universe_from_context

lsst.daf.butler.pydantic_utils.get_universe_from_context(context: dict[str, Any] | None) DimensionUniverse

Extract the dimension universe from a Pydantic validation context dictionary.

Parameters:
contextdict

Dictionary obtained from pydantic.ValidationInfo.context.

Returns:
universeDimensionUniverse

Definitions for all dimensions.

Notes

This function just provides consistent error handling around:

context["universe"]