def buildprior(self, prior, mopt=None):
nprior = gvar.BufferDict()<EOL>for m in self.flatmodels:<EOL><INDENT>nprior.update(m.buildprior(<EOL>prior, mopt=mopt,<EOL>))<EOL><DEDENT>if not self.fast:<EOL><INDENT>for k in prior:<EOL><INDENT>if k not in nprior:<EOL><INDENT>nprior[k] = prior[k]<EOL><DEDENT><DEDENT><DEDENT>return nprior<EOL>
Create prior to fit models in list ``models``.