-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PUMS geographies based on ACS and support for last pandas release (#67)
* Reading PUMS files based on different ACS years (gegraphies based on > and < 2010 Census) * Config class to tidy up bucket URL's. * Casting serialno as str for group quarter cases in PUMS 2018 based synthesis * Fix pandas issue #63 on drop_zeros ipu module function
- Loading branch information
Showing
7 changed files
with
71 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
class synthpop_config: | ||
|
||
def __init__(self, acsyear=2013): | ||
self.acsyear = acsyear | ||
|
||
def pums_storage(self): | ||
if self.acsyear >= 2018: | ||
storage = "https://storage.googleapis.com/synthpop-public/PUMS2018/pums_2018_acs5/" | ||
else: | ||
storage = "https://s3-us-west-1.amazonaws.com/synthpop-data2/" | ||
return storage | ||
|
||
def __call__(self): | ||
return self.pums_storage() |
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