Skip to content

Commit 109a1ab

Browse files
Add lite mode
1 parent c5702b4 commit 109a1ab

4 files changed

Lines changed: 62 additions & 61 deletions

File tree

.github/workflows/pull_request.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,9 @@ jobs:
6767
POLICYENGINE_US_DATA_GITHUB_TOKEN: ${{ secrets.POLICYENGINE_US_DATA_GITHUB_TOKEN }}
6868
- name: Build datasets
6969
run: make data
70+
env:
71+
LITE_MODE: true
7072
- name: Run tests
7173
run: pytest
7274
- name: Test documentation builds
7375
run: make documentation
74-
- name: Upload ECPS 2024
75-
uses: actions/upload-artifact@v4
76-
with:
77-
name: enhanced_cps_2024.h5
78-
path: policyengine_us_data/storage/enhanced_cps_2024.h5

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ copyright: "2024"
44
logo: logo.png
55

66
execute:
7-
execute_notebooks: force
7+
execute_notebooks: off
88

99
repository:
1010
url: https://github.com/policyengine/policyengine-us-data

docs/validation.ipynb

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

policyengine_us_data/datasets/cps/extended_cps.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ def generate(self):
8585
cps_sim = Microsimulation(dataset=self.cps)
8686
puf_sim = Microsimulation(dataset=self.puf)
8787

88+
if os.environ.get("LITE_MODE"):
89+
puf_sim.subsample(10_000)
90+
cps_sim.subsample(10_000)
91+
8892
INPUTS = [
8993
"age",
9094
"is_male",

0 commit comments

Comments
 (0)