ENH fixing doctest for regime_weights deprecation warning