Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tidy up hardcoded URLs
- Loading branch information
PyMap
committed
Sep 29, 2020
1 parent
52b821a
commit d51a4cb
Showing
2 changed files
with
16 additions
and
6 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
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() |