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
Metriccontext or the centraljacopy.central.objects.metric.MetricATOM — 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: