def filter_by_analysis_period(self, analysis_period):
        """Filter the Data Collection based on an analysis period.

        Args:
           analysis period: A Ladybug analysis period

        Return:
            A new Data Collection with filtered data
        """
        self._check_analysis_period(analysis_period)
        _filtered_data = self.filter_by_doys(analysis_period.doys_int)
        _filtered_data.header._analysis_period = analysis_period
        return _filtered_data
def filter_by_analysis_period ( self , analysis_period ) : self . _check_analysis_period ( analysis_period ) _filtered_data = self . filter_by_doys ( analysis_period . doys_int ) _filtered_data . header . _analysis_period = analysis_period return _filtered_data
Filter the Data Collection based on an analysis period.

        Args:
           analysis period: A Ladybug analysis period

        Return:
            A new Data Collection with filtered data