From b5131646af7d1852082201276a288b119a504f91 Mon Sep 17 00:00:00 2001 From: Gary Tempus Jr Date: Thu, 28 Mar 2024 17:16:06 -0400 Subject: [PATCH] feat: add test enums --- .../nasa_viirs_fire_alerts/supported_attributes.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/models/enumerators/nasa_viirs_fire_alerts/supported_attributes.py b/app/models/enumerators/nasa_viirs_fire_alerts/supported_attributes.py index 650ebc30..5064e85a 100644 --- a/app/models/enumerators/nasa_viirs_fire_alerts/supported_attributes.py +++ b/app/models/enumerators/nasa_viirs_fire_alerts/supported_attributes.py @@ -46,6 +46,20 @@ class SupportedAttribute(Enum, init="value aggregation_rule"): # type: ignore "umd_tree_cover_density__threshold", ), ) + UMD_TREE_COVER_DENSITY__THRESHOLD_MAX = ( + "umd_tree_cover_density__threshold_max", + rule( + 'max("umd_tree_cover_density__threshold")', + "umd_tree_cover_density__threshold", + ), + ) + UMD_TREE_COVER_DENSITY__THRESHOLD_MODE = ( + "umd_tree_cover_density__threshold_mode", + rule( + "mode() WITHIN GROUP (ORDER BY umd_tree_cover_density__threshold)", + "umd_tree_cover_density__threshold", + ), + ) def __str__(self): return self.value