Skip to content

Commit 925ef2d

Browse files
minor bug fixes
1 parent ec07085 commit 925ef2d

File tree

3 files changed

+39
-8
lines changed

3 files changed

+39
-8
lines changed

.github/workflows/any_changes.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
uses: actions/setup-python@v2
2121
with:
2222
python-version: '3.11'
23+
- uses: "google-github-actions/auth@v2"
24+
with:
25+
workload_identity_provider: "projects/322898545428/locations/global/workloadIdentityPools/policyengine-research-id-pool/providers/prod-github-provider"
26+
service_account: "policyengine-research@policyengine-research.iam.gserviceaccount.com"
2327

2428
- name: Install package
2529
run: uv pip install .[dev] --system

docs/concepts/simulation.ipynb

Lines changed: 31 additions & 5 deletions
Large diffs are not rendered by default.

policyengine/outputs/macro/comparison/calculate_economy_comparison.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from policyengine.outputs.macro.single.calculate_single_economy import (
1111
SingleEconomy,
1212
)
13-
from policyengine.utils.packages import get_country_package_version
1413
from typing import List, Dict
1514

1615

@@ -784,7 +783,8 @@ class CliffImpact(BaseModel):
784783

785784

786785
class EconomyComparison(BaseModel):
787-
country_package_version: str
786+
model_version: str
787+
data_version: str
788788
budget: BudgetaryImpact
789789
detailed_budget: DetailedBudgetaryImpact
790790
decile: DecileImpact
@@ -847,7 +847,8 @@ def calculate_economy_comparison(
847847
cliff_impact = None
848848

849849
return EconomyComparison(
850-
country_package_version=get_country_package_version(country_id),
850+
model_version=simulation.model_version,
851+
data_version=simulation.data_version,
851852
budget=budgetary_impact_data,
852853
detailed_budget=detailed_budgetary_impact_data,
853854
decile=decile_impact_data,

0 commit comments

Comments
 (0)