parameters: (self, filename)
return_statement: return strategy
docstring: Get chunking strategy by calling mantid algorithm 'DetermineChunking'
          :param filename:
          :return: a list of dictionary.  Each dictionary is a row in table workspace
docstring_summary: Get chunking strategy by calling mantid algorithm 'DetermineChunking'
          :param filename:
          :return: a list of dictionary.  Each dictionary is a row in table workspace
docstring_tokens: Get chunking strategy by calling mantid algorithm DetermineChunking : param filename : : return : a list of dictionary . Each dictionary is a row in table workspace
function: def _getStrategy(self, filename):
          """
          Get chunking strategy by calling mantid algorithm 'DetermineChunking'
          :param filename:
          :return: a list of dictionary.  Each dictionary is a row in table workspace
          """
          # Determine chunk strategy can search in archive.
          # Therefore this will fail: assert os.path.exists(file_name), 'NeXus file %s does not exist.' % file_name
          self.log().debug("[Fx116] Run file Name : %s,\t\tMax chunk size: %s" %
                           (filename, str(self._chunks)))
          chunks = api.DetermineChunking(Filename=filename, MaxChunkSize=self._chunks)
  
          strategy = []
          for row in chunks:
              strategy.append(row)
  
          # For table with no rows
          if len(strategy) == 0:
              strategy.append({})
  
          # delete chunks workspace
          chunks = str(chunks)
          mtd.remove(chunks)
  
          return strategy
function_tokens: def _getStrategy ( self , filename ) : # Determine chunk strategy can search in archive. # Therefore this will fail: assert os.path.exists(file_name), 'NeXus file %s does not exist.' % file_name self . log ( ) . debug ( "[Fx116] Run file Name : %s,\t\tMax chunk size: %s" % ( filename , str ( self . _chunks ) ) ) chunks = api . DetermineChunking ( Filename = filename , MaxChunkSize = self . _chunks ) strategy = [ ] for row in chunks : strategy . append ( row ) # For table with no rows if len ( strategy ) == 0 : strategy . append ( { } ) # delete chunks workspace chunks = str ( chunks ) mtd . remove ( chunks ) return strategy