# 6. Sasview to sasmodel converter

## `sasmodels.convert`

Convert models to and from sasview.

sasmodels.convert.constrain_new_to_old(model_info, pars)

  Restrict parameter values to those that will match sasview.

sasmodels.convert.convert_model(name, pars, use_underscore=False, model_version=(3, 1, 2))

  Convert model from old style parameter names to new style.

sasmodels.convert.revert_name(model_info)

  Translate model name back to the name used in SasView 3.x

sasmodels.convert.revert_pars(model_info, pars)

  Convert model from new style parameter names to old style.

sasmodels.convert.test_backward_forward()

  Test conversion of model parameters from 4.x to 3.x and back.