Commit 74f59dd
committed
Make ZIP code export lazy
- Stop importing policyengine_us_data.geography at package import time.
- Expose ZIP_CODE_DATASET through a lazy __getattr__ export instead, so importing policyengine_us_data no longer forces pandas to load.
- This breaks the modal deploy import chain that was failing in modal_app.pipeline -> modal_app.local_area -> policyengine_us_data.__init__ on the CI runner.1 parent 4bbd4da commit 74f59dd
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
0 commit comments