Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/f/i/FinalStateAnalysis-HEAD/StatTools/python/cardreader.py   FinalStateAnalysis(Download)
 
from optparse import OptionParser
from HiggsAnalysis.CombinedLimit.DatacardParser import \
        parseCard, addDatacardParserOptions
from uncertainties import ufloat
def read_card(filename):
    file = open(filename, 'r')
    datacard = parseCard(file, _options)
    return datacard
 

src/f/i/FinalStateAnalysis-HEAD/StatTools/python/DataCard.py   FinalStateAnalysis(Download)
'''
 
from HiggsAnalysis.CombinedLimit.DatacardParser import \
        parseCard, addDatacardParserOptions
import fnmatch
    def __init__(self, filename):
        self.file = open(os.path.expandvars(filename), 'r')
        # Read the card into a set of dictionaries
        self.card = parseCard(self.file, _options)