code: def calculate_grid(self):
          
          if self.grid is None:
              self.grid = self.get_wellseries(self.get_grid())
  
          if self.grid_transposed is None:
              self.grid_transposed = self.get_wellseries(
                  self.transpose(
                      self.get_grid()))
docs: Calculates and stores grid structure