@staticmethod<EOL><INDENT>def process_data(data, models):<DEDENT>
pdata = gvar.BufferDict()<EOL>for m in MultiFitter.flatten_models(models):<EOL><INDENT>pdata[m.datatag] = (<EOL>m.builddata(data) if m.ncg <= <NUM_LIT:1> else<EOL>MultiFitter.coarse_grain(m.builddata(data), ncg=m.ncg)<EOL>)<EOL><DEDENT>return pdata<EOL>
Convert ``data`` to processed data using ``models``.

        Data from dictionary ``data`` is processed by each model
        in list ``models``, and the results collected into a new
        dictionary ``pdata`` for use in :meth:`MultiFitter.lsqfit`
        and :meth:`MultiFitter.chained_lsqft`.