def createStyleMap():
    print "Drawing user rating maps of beers with a style of " + str(args.styleMap)
    dataPoints = files.readDataPoints()
    if len(dataPoints) > 0:
        style = args.styleMap
        points = []
        for point in dataPoints:
            if style in point.style:
                points.append(point)
        print str(len(points)) + " points of data"
        PBAMap.drawMap(points, style)
    else:
        print "No data points found"
Esempio n. 2
0
def createStyleMap():
    print "Drawing user rating maps of beers with a style of " + str(
        args.styleMap)
    dataPoints = files.readDataPoints()
    if len(dataPoints) > 0:
        style = args.styleMap
        points = []
        for point in dataPoints:
            if style in point.style:
                points.append(point)
        print str(len(points)) + " points of data"
        PBAMap.drawMap(points, style)
    else:
        print "No data points found"
def createABVMap():
    """Make a color map of specific alcohol by volume."""
    print "Drawing user rating maps of beers with an alcohol concentration of " + str(args.abvMap) + '%'
    dataPoints = files.readDataPoints()
    if len(dataPoints) > 0:
        abv = int(args.abvMap)
        points = []
        for point in dataPoints:
            if int(point.abv) == abv:
                points.append(point)
            elif (abv in [1, 2, 3]) and (int(point.abv) in [1, 2, 3]):
                points.append(point)
            elif (abv > 11 and int(point.abv) > 11):
                points.append(point)
        print str(len(points)) + " points of data"
        PBAMap.drawMap(points, abv)
    else:
        print "No data points found"
Esempio n. 4
0
def createABVMap():
    """Make a color map of specific alcohol by volume."""
    print "Drawing user rating maps of beers with an alcohol concentration of " + str(
        args.abvMap) + '%'
    dataPoints = files.readDataPoints()
    if len(dataPoints) > 0:
        abv = int(args.abvMap)
        points = []
        for point in dataPoints:
            if int(point.abv) == abv:
                points.append(point)
            elif (abv in [1, 2, 3]) and (int(point.abv) in [1, 2, 3]):
                points.append(point)
            elif (abv > 11 and int(point.abv) > 11):
                points.append(point)
        print str(len(points)) + " points of data"
        PBAMap.drawMap(points, abv)
    else:
        print "No data points found"