inits producer for a simulation run

def initialize(self, grid, num_of_paths, seed):
        """ inits producer for a simulation run """
        self.grid = grid
        self.num_of_paths = num_of_paths
        self.seed = seed
        if self.initial_state.date is None:
            self.initial_state.date = grid[0]