Skip to content

chore(filter): change the datetime filter.#2711

Draft
sandeshit wants to merge 3 commits intoproject/alert-system-workflowfrom
chore/revert-datetime
Draft

chore(filter): change the datetime filter.#2711
sandeshit wants to merge 3 commits intoproject/alert-system-workflowfrom
chore/revert-datetime

Conversation

@sandeshit
Copy link
Copy Markdown
Contributor

Changes

  • Revert datetime filter to use start/end.
  • Changed gdacs flood transformer to use sum of impacts.

Checklist

  • Updated/ran unit tests
  • Updated CHANGELOG.md

- Used hash maps to calculate the sum of impacts.
- Changed the past event extraction to only include affected total for now.
@sandeshit sandeshit marked this pull request as draft April 9, 2026 06:11

category = detail.get("category")
type_ = detail.get("type")
value = detail.get("value") or 0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sandeshit In pystac-monty side, "0" carries a meaning so when the impact value information is not available, in few of the sources, the "value" might be set to -1 to indicate that there is no information on value (value being int so used -1). So, please control it here as well. If detail.get("value") is -1 also, set it to 0 as you are only calculating the sum per category and type_ basis.

@sandeshit sandeshit requested a review from ranjan-stha April 10, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants