def buildprior(self, prior, mopt=None, extend=False):
newprior = {}<EOL>intercept, slope = gv.get_dictkeys(<EOL>prior, [self.intercept, self.slope]<EOL>)<EOL>newprior[intercept] = prior[intercept]<EOL>if mopt is None:<EOL><INDENT>newprior[slope] = prior[slope]<EOL><DEDENT>return newprior<EOL>
Extract the model's parameters from prior.