s.weight.from.metric function

Convert a Metric to Weight