def validate(self):
if self.nregions is None:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>if self.sregions is None:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>if self.recregions is None:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>if self.demography is None:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>if self.prune_selected is None:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>if self.gvalue is None:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>if self.rates is None:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>
Error check model params.

:raises TypeError: Throws TypeError if validation fails.