def __init__(self, year = None, mon = None, day = None, hr = None,\ tlhrs = None, delt = None, gauge0 = None, glong = None): self.exporter = EXPORTER("output/exportTideGeneration") self.isSingleCase = True if year != None: self.defaultValue_year = year if mon != None: self.defaultValuemon = mon if day != None: self.defaultValue_day = day if hr != None: self.defaultValue_hr = hr if tlhrs != None: self.defaultValuetlhrs = tlhrs if delt != None: self.defaultValue_delt = delt if gauge0 != None: self.defaultValue_gauge0 = gauge0 if glong != None: self.defaultValue_glong = glong super(TideGeneration, self).__init__() self.exporter.close()
def __init__(self, Hmo = None, Tp = None, d = None): self.exporter = EXPORTER("output/exportBetaRayleigh") if Hmo != None: self.isSingleCase = True self.defaultValueHmo = Hmo if Tp != None: self.isSingleCase = True self.defaultValueTp = Tp if d != None: self.isSingleCase = True self.defaultValue_d = d super(BetaRayleigh, self).__init__() self.exporter.close()