parameters: (path, max_count=0)
return_statement: return result
docstring: Load ROI file and return it as a list of RoiRecord objects.
  
      NA values are translated to 0.
docstring_summary: Load ROI file and return it as a list of RoiRecord objects.
docstring_tokens: Load ROI file and return it as a list of RoiRecord objects .
function: def load(path, max_count=0):
      """Load ROI file and return it as a list of RoiRecord objects.
  
      NA values are translated to 0.
      """
      result = []
      for i, x in enumerate(RoiFile(path)):
          if max_count > 0 and i >= max_count:
              break
          result.append(x)
      return result
function_tokens: def load ( path , max_count = 0 ) : result = [ ] for i , x in enumerate ( RoiFile ( path ) ) : if max_count > 0 and i >= max_count : break result . append ( x ) return result