in orbit/template/dlt.py [0:0]
def _validate_global_options(self):
if self.global_trend_option not in ["flat", "linear", "loglinear", "logistic"]:
raise IllegalArgument(
"{} is not one of 'flat', 'linear', 'loglinear', or 'logistic'".format(
self.global_trend_option
)
)
if self.global_trend_option == "logistic":
if self.global_cap <= self.global_floor:
raise IllegalArgument(
"In logistic global trend option, global cap{:.5f} must be greater than global floor{:.5f}.".format(
self.global_cap, self.global_floor
)
)