Skip to content

Fix France THT study load + add THT network preview - #193

Merged
marota merged 1 commit into
ainetus:mainfrom
marota:claude/expert-op4grid-performance-t1pdrq
Jul 22, 2026
Merged

Fix France THT study load + add THT network preview#193
marota merged 1 commit into
ainetus:mainfrom
marota:claude/expert-op4grid-performance-t1pdrq

Conversation

@marota

@marota marota commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

The France THT game grids ship the network compressed + text-encoded as network.xiidm.gz.b64 (Git-LFS-free). The Docker build decodes them, but a build/dev checkout that skipped that step left only the .gz.b64, so pypowsybl's pn.load failed with 'Unsupported file format' and studies would not load.

  • network_service: decode a companion network.xiidm.gz.b64 on demand in _resolve_network_file (caches the decoded .xiidm next to it, falls back to a temp dir when the grid dir is read-only). Adds backend tests.
  • gen_network_previews: render preview-tht.svg for the France THT grid (reads the .gz.b64 when the raw .xiidm is absent). Wire it into the landing page so France THT mode shows its network map, like the European demo does.
  • Update the frontend/backend tests for the new THT preview + fallback.

The France THT game grids ship the network compressed + text-encoded as
network.xiidm.gz.b64 (Git-LFS-free). The Docker build decodes them, but a
build/dev checkout that skipped that step left only the .gz.b64, so
pypowsybl's pn.load failed with 'Unsupported file format' and studies
would not load.

- network_service: decode a companion network.xiidm.gz.b64 on demand in
  _resolve_network_file (caches the decoded .xiidm next to it, falls back
  to a temp dir when the grid dir is read-only). Adds backend tests.
- gen_network_previews: render preview-tht.svg for the France THT grid
  (reads the .gz.b64 when the raw .xiidm is absent). Wire it into the
  landing page so France THT mode shows its network map, like the
  European demo does.
- Update the frontend/backend tests for the new THT preview + fallback.

Signed-off-by: marota <amarot91@gmail.com>
@marota
marota merged commit a769539 into ainetus:main Jul 22, 2026
11 checks passed
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.

1 participant