def calculateTotalSize(inputFileName):
    width = 0
    height = 0
    reader = csv.reader(file(inputFileName))
    for row in reader:
        fields = mapInputFields(row)
        width += fields["width"]
        if fields["height"] > height:
            height = fields["height"]
    return int(width), int(height)
            

# Given a list of input values, return a dictionary of same. This allows us to
# deal with column positions in one place only.
dataset/ETHPy150Open longnow/longview/sliceMaker.py/calculateTotalSize/original