def _sanity_check(self):
windows = self.lag_window_size + self.future_window_size<EOL>if (not self.lag_window_size or not self.future_window_size or self.time_series_length < windows or windows < DEFAULT_BITMAP_MINIMAL_POINTS_IN_WINDOWS):<EOL><INDENT>raise exceptions.NotEnoughDataPoints<EOL><DEDENT>if self.lag_window_size > DEFAULT_BITMAP_MAXIMAL_POINTS_IN_WINDOWS:<EOL><INDENT>self.lag_window_size = DEFAULT_BITMAP_MAXIMAL_POINTS_IN_WINDOWS<EOL><DEDENT>if self.future_window_size > DEFAULT_BITMAP_MAXIMAL_POINTS_IN_WINDOWS:<EOL><INDENT>self.future_window_size = DEFAULT_BITMAP_MAXIMAL_POINTS_IN_WINDOWS<EOL><DEDENT>
Check if there are enough data points.