Commit d54db05
Fix CI: pin GAMS 53.5.1 + robust pTransferLimit season check (#125)
* fix: only check existing zone pairs in pTransferLimit season validation
The seasonal-coverage check in _check_transfer_limits grouped pTransferLimit
records with observed=False. Once the GAMS Python API began returning the
z/z2 columns as categorical dtype (recent gams/gams image), observed=False
started enumerating the full cartesian product of zones, creating empty
phantom groups for pairs that have no transfer limit. Those empty groups were
flagged as missing all seasons, failing CI on unchanged data.
Use observed=True so only zone pairs actually present in pTransferLimit are
validated. Real incomplete pairs are still caught.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* ci: pin GAMS image to 53.5.1 (last known-good)
GAMS 54.1.0 changed gams-transfer to return categorical dtypes, which broke
the pipeline in multiple places (phantom groupby groups in input_verification,
UNDF values in input_treatment generic defaults). Pin to 53.5.1 — the version
that was green on June 3 — to restore CI. Revisit 54.x compatibility separately.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs: note GAMS 53.x requirement / 54.x unsupported (refs #126)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 5e2fd20 commit d54db05
3 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
659 | | - | |
| 659 | + | |
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
| |||
0 commit comments