Def_modelform_fix function

Automatically assigns geometric-mixture values and checks that a valid modelform is used