def __init__(self, year=None, results_log=None):
        """
        :param year: Year to base analysis on. Default: current year.
        :type year: float
        :param results_log: Dict to store intermediate results
        :type results_log: dict
        """

        self.year = year or date.today().year

        if results_log is not None:
            self.results_log = results_log
        else:
            self.results_log = {}
def __init__ ( self , year = None , results_log = None ) : self . year = year or date . today ( ) . year if results_log is not None : self . results_log = results_log else : self . results_log = { }
:param year: Year to base analysis on. Default: current year.
        :type year: float
        :param results_log: Dict to store intermediate results
        :type results_log: dict