Source code for geetools._deprecated_expressions

# -*- coding: utf-8 -*-
"""Expression generator for Google Earth Engine."""
from deprecated.sphinx import deprecated


[docs] class Expression: @staticmethod @deprecated(version="1.0.0", reason="Use pure python string instead")
[docs] def max(a, b): """Generates the expression for max between a and b.""" return "({a}>{b})?{a}:{b}".format(a=a, b=b)
@staticmethod @deprecated(version="1.0.0", reason="Use pure python string instead")
[docs] def min(a, b): """Generates the expression for min between a and b.""" return "({a}>{b})?{b}:{a}".format(a=a, b=b)