Skip to content

Add Lebanon daily casualties dataset infrastructure#699

Merged
sterlingwes merged 10 commits into
mainfrom
claude/lebanon-daily-casualties-l6gin-eb3oet
Jun 24, 2026
Merged

Add Lebanon daily casualties dataset infrastructure#699
sterlingwes merged 10 commits into
mainfrom
claude/lebanon-daily-casualties-l6gin-eb3oet

Conversation

@sterlingwes

@sterlingwes sterlingwes commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Adds source_data/lebanon-daily/, build script, config, and validator
entries for a new Lebanon daily casualties dataset sourced from Lebanon
MoPH (moph.gov.lb). Tracks killed/injured with cumulative and derived
ext_ series, mirroring the Gaza daily pipeline.

claude and others added 9 commits June 14, 2026 23:53
Adds source_data/lebanon-daily/, build script, config, and validator
entries for a new Lebanon daily casualties dataset sourced from Lebanon
MoPH (moph.gov.lb). Tracks killed/injured with cumulative and derived
ext_ series, mirroring the Gaza daily pipeline.

https://claude.ai/code/session_01BfbHunqYYzJDm875fViYAU
Generated by the new gen-lbdaily pipeline (empty dataset placeholder).

https://claude.ai/code/session_01BfbHunqYYzJDm875fViYAU
Scrapes all 85 available daily situation reports from the Lebanon Ministry
of Public Health (moph.gov.lb) covering the Israeli aggression that began
March 2, 2026. Includes cumulative killed/injured and computed daily deltas
through June 11, 2026 (3,711 martyrs, 11,483 wounded).

Also adds scraper scripts used to collect the data:
- scripts/scrape_lebanon_moph.py — scans moph.gov.lb Media IDs
- scripts/create_lebanon_md_files.py — generates source .md files

https://claude.ai/code/session_01HTi9iUbh235WsLusjgU5t7
- report_period now reflects actual days since previous report (x24h)
  instead of a hardcoded 24 for all entries; six reports with coverage
  gaps now carry the correct period (96h, 120h, 48h, 72h, 168h, 48h)
- Merge duplicate findReportingDiscrepancies import into the existing
  content import block in lebanon-daily.ts

https://claude.ai/code/session_01HTi9iUbh235WsLusjgU5t7
- Add LebanonDailyV3 to ApiResource enum
- Create scripts/data/v3/lebanon-daily.ts mirroring the v2 pipeline
  so the dataset is served at both api/v2/ and api/v3/ paths
- Update gen-lbdaily to run both v2 and v3 scripts
- Apply oxfmt fix to v2 script (flatten single-expression filter callback)

https://claude.ai/code/session_01HTi9iUbh235WsLusjgU5t7
Auto-updated by gen-lbdaily; adds api/v3 entries for the Lebanon daily
casualties dataset alongside the existing api/v2 entries.

https://claude.ai/code/session_01HTi9iUbh235WsLusjgU5t7
Source data: append moph.gov.lb daily casualty reports for Jun 13–21,
2026 (no standard report published for Jun 12; covered by a 48h report
period on Jun 13). Regenerate lebanon_casualties_daily.json/.min.json
from the updated source_data so the extended series stays in sync.

Decap CMS: add a lebanon-daily collection to site/static/admin/config.yml
so reports can be edited through the CMS, matching the existing
gaza-daily/west-bank-daily collections.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019UyFgNKXzoKaG61D3WDZUF
Now that reports are maintained through the Decap CMS, remove the
one-off Python scraper/generator scripts (scrape_lebanon_moph.py,
create_lebanon_md_files.py).

Drop the V2 Lebanon daily API: only V3 is supported. Removes the
LebanonDailyV2 ApiResource, the v2 generator script, the v2 manifest
entry, and the v2 step from the gen-lbdaily npm script.

Remove the ext_ series from the Lebanon dataset — with no carry-forward
gaps the ext_ columns are identical to the base killed/injured fields.
Drops the deriveExtendedSeries step and its config (lebanonCarryForward,
lebanonExtDeltas), the ext_ CMS fields, and regenerates the JSON.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019UyFgNKXzoKaG61D3WDZUF
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 24, 2026

Copy link
Copy Markdown

Deploying palestine-numbers with  Cloudflare Pages  Cloudflare Pages

Latest commit: 04eb3f4
Status: ✅  Deploy successful!
Preview URL: https://27663a4d.palestine-numbers.pages.dev
Branch Preview URL: https://claude-lebanon-daily-casualt-gdxk.palestine-numbers.pages.dev

View logs

@sterlingwes sterlingwes merged commit 817b681 into main Jun 24, 2026
7 checks passed
@sterlingwes sterlingwes deleted the claude/lebanon-daily-casualties-l6gin-eb3oet branch June 24, 2026 00:35
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