def setUp(self): '''Set the reference values for eaBase ''' self.tMin = 18 self.tMax=25 self.rhmin=0.54 self.rhmax=0.82 self.ea=ea(self.tMin,self.tMax,self.rhmin,self.rhmax)
def calculateEa(self): '''This method will calculate the ea when given the appropriate data ''' print "You have selected Ea calculation" tmax = float(raw_input("Insert Tmax: ")) tmin = float(raw_input("Insert Tmin: ")) rhmax = float(raw_input("Insert RHmax: ")) rhmin = float(raw_input("Insert RHmin: ")) eaCalculated=ea.ea(tmin,tmax,rhmin,rhmax) print str(eaCalculated.calc_ea())