original_docstring: 
          This will run both the adjacency and era calculators to get a final tile yield.
          
docstring: This will run both the adjacency and era calculators to get a final tile yield.
docstring_tokens: This will run both the adjacency and era calculators to get a final tile yield .
code: def calculate_tile_yield(self, tile_index):
          """
          This will run both the adjacency and era calculators to get a final tile yield.
          """
          # if tile_index is None:
          #     print('for testing only running first few keys. Fix this later!!!!')
          #     search_list = list(self.adjacency_members.keys())[:7]
          #     # search_list = self.adjacency_members.keys()
          # else:
          #     if not isinstance(tile_index, list):
          #         search_list = [tile_index]
  
          if getattr(self, tile_index) is None:
              return None
  
          if getattr(self, tile_index).wonder is not None:
              print('has wonder')
              # self._calculate_wonder(tile_index)
              return None
  
          if getattr(self, tile_index).district is not None:
              print('has district')
              self._calculate_district(tile_index)
              return None
  
          if getattr(self, tile_index).terrain is not None:
              print('has terrain')
              self._calculate_terrain(tile_index)
  
          if getattr(self, tile_index).hills is not None:
              print('has hills')
              self._calculate_hills(tile_index)
  
          if getattr(self, tile_index).feature is not None:
              print('has feature')
              self._calculate_feature(tile_index)
  
          # if getattr(self, tile_index).river is not None:
          #     print('has river')
          #     # self._calculate_river(tile_index)
  
          if getattr(self, tile_index).resource is not None:
              self._calculate_resource(tile_index)
              print('has resource')
  
          if getattr(self, tile_index).improvement is not None:
              print('has improvement')
              self._calculate_improvement(tile_index)
code_tokens: def calculate_tile_yield ( self , tile_index ) : if getattr ( self , tile_index ) is None : return None if getattr ( self , tile_index ) . wonder is not None : print ( 'has wonder' ) return None if getattr ( self , tile_index ) . district is not None : print ( 'has district' ) self . _calculate_district ( tile_index ) return None if getattr ( self , tile_index ) . terrain is not None : print ( 'has terrain' ) self . _calculate_terrain ( tile_index ) if getattr ( self , tile_index ) . hills is not None : print ( 'has hills' ) self . _calculate_hills ( tile_index ) if getattr ( self , tile_index ) . feature is not None : print ( 'has feature' ) self . _calculate_feature ( tile_index ) if getattr ( self , tile_index ) . resource is not None : self . _calculate_resource ( tile_index ) print ( 'has resource' ) if getattr ( self , tile_index ) . improvement is not None : print ( 'has improvement' ) self . _calculate_improvement ( tile_index )
short_docstring: This will run both the adjacency and era calculators to get a final tile yield.
short_docstring_tokens: This will run both the adjacency and era calculators to get a final tile yield .
comment: """
          This will run both the adjacency and era calculators to get a final tile yield.
          """$SEP$# if tile_index is None:$SEP$#     print('for testing only running first few keys. Fix this later!!!!')$SEP$#     search_list = list(self.adjacency_members.keys())[:7]$SEP$#     # search_list = self.adjacency_members.keys()$SEP$# else:$SEP$#     if not isinstance(tile_index, list):$SEP$#         search_list = [tile_index]$SEP$# self._calculate_wonder(tile_index)$SEP$# if getattr(self, tile_index).river is not None:$SEP$#     print('has river')$SEP$#     # self._calculate_river(tile_index)