mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-28 22:51:18 -07:00
Add territory boundary data (#885)
* Add territory boundary data * housing and transp * lint * lint * lint
This commit is contained in:
parent
f00cc5f7b2
commit
0a21fc6b12
5 changed files with 35 additions and 17 deletions
|
@ -16,13 +16,17 @@ from data_pipeline.utils import (
|
|||
logger = get_module_logger(__name__)
|
||||
|
||||
|
||||
def reset_data_directories(data_path: Path) -> None:
|
||||
def reset_data_directories(
|
||||
data_path: Path,
|
||||
) -> None:
|
||||
"""Empties all census folders"""
|
||||
census_data_path = data_path / "census"
|
||||
|
||||
# csv
|
||||
csv_path = census_data_path / "csv"
|
||||
remove_files_from_dir(csv_path, ".csv")
|
||||
remove_files_from_dir(
|
||||
csv_path, ".csv", exception_list=["fips_states_2010.csv"]
|
||||
)
|
||||
|
||||
# geojson
|
||||
geojson_path = census_data_path / "geojson"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue