@staticmethod<EOL><INDENT>def flatten_models(models):<DEDENT>
if isinstance(models, MultiFitterModel):<EOL><INDENT>ans = [models]<EOL><DEDENT>else:<EOL><INDENT>tasklist = MultiFitter._compile_models(models)<EOL>ans = MultiFitter._flatten_models(tasklist)<EOL><DEDENT>return ans<EOL>
Create 1d-array containing all disctinct models from ``models``.