jacopy.packages.metric_affine.as_metric_context

jacopy.packages.metric_affine.as_metric_context(g)

COERCE a metric object into this package’s context (the compatibility bridge).

Accepts either this package’s Metric context or the central jacopy.central.objects.metric.Metric ATOM — the two carry the same defining semantics (a symmetric, non-degenerate (0,2)-tensor BY DEFINITION), differing only in their role (Expr atom for Hodge/musical vs evaluation context here). The bridge preserves the FULL identity — name AND bundle (same-named metrics on different bundles stay distinct, dimensions survive the round trip). Anything else raises.

Return type:

Metric