-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
992e89b
commit 3fb10cb
Showing
8 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
from .uprating import * | ||
from .datasets import * | ||
from .loss import * | ||
from .download_docs_prerequisites import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from policyengine_us_data.utils.github import download | ||
from policyengine_us_data.data_storage import STORAGE_FOLDER | ||
|
||
PREREQUISITES = [ | ||
{ | ||
"repo": "ukda", | ||
"file_name": "frs_2022_23.h5", | ||
}, | ||
{ | ||
"repo": "ukda", | ||
"file_name": "enhanced_frs_2022_23.h5", | ||
}, | ||
] | ||
|
||
|
||
def download_data(): | ||
for prerequisite in PREREQUISITES: | ||
if not (STORAGE_FOLDER / prerequisite["file_name"]).exists(): | ||
download( | ||
"PolicyEngine", | ||
prerequisite["repo"], | ||
"release", | ||
prerequisite["file_name"], | ||
STORAGE_FOLDER / prerequisite["file_name"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters