def _weeks_check(self, data, week_type):
assert isinstance(data, dict), '<STR_LIT:{}>''<STR_LIT>'.format(week_type, type(data))<EOL>if bool(data) is True:<EOL><INDENT>for val in data.values():<EOL><INDENT>assert isinstance(val, AnalysisPeriod), '<STR_LIT>''<STR_LIT>'.format(week_type, type(val))<EOL>assert len(val.doys_int) == <NUM_LIT:7>, '<STR_LIT>''<STR_LIT>'.format(<EOL>week_type, type(val))<EOL><DEDENT><DEDENT>
Check if input for the typical/extreme weeks of the header is correct.