def _checkReasonableSettings(self):
if self.w < <NUM_LIT>:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>" % self.w)<EOL><DEDENT>
(helper function) check if the settings are reasonable for SP to work