def readXmlHistograms(histograms_file_location): """Parses all histogram names from histograms.xml. Returns: A set cotaining the parsed histogram names. """ logging.info('Reading histograms from %s...' % histograms_file_location) histograms = extract_histograms.ExtractHistograms(histograms_file_location) return set(extract_histograms.ExtractNames(histograms))
def main(): # This will raise an exception if the file is not well-formatted. histograms = extract_histograms.ExtractHistograms('histograms.xml')
def main(): # This will raise an exception if the file is not well-formatted. xml_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'histograms.xml') histograms = extract_histograms.ExtractHistograms(xml_file)
def main(): # This will raise an exception if the file is not well-formatted. xml_file = path_util.GetHistogramsFile() histograms = extract_histograms.ExtractHistograms(xml_file)