mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-27 19:41:17 -07:00
Starting Tribal Boundaries Work (#1736)
* starting tribal pr * further pipeline work * bia merge working * alaska villages and tribal geo generate * tribal folders * adding data full run * tile generation * tribal tile deploy
This commit is contained in:
parent
746d36d4a6
commit
8149ac31c5
14 changed files with 463 additions and 51 deletions
|
@ -0,0 +1,28 @@
|
|||
from pathlib import Path
|
||||
|
||||
from data_pipeline.utils import (
|
||||
get_module_logger,
|
||||
remove_all_from_dir,
|
||||
remove_files_from_dir,
|
||||
)
|
||||
|
||||
|
||||
logger = get_module_logger(__name__)
|
||||
|
||||
|
||||
def reset_data_directories(
|
||||
data_path: Path,
|
||||
) -> None:
|
||||
"""Empties all tribal files"""
|
||||
tribal_data_path = data_path / "tribal"
|
||||
|
||||
# csv
|
||||
csv_path = tribal_data_path / "csv"
|
||||
remove_files_from_dir(
|
||||
csv_path,
|
||||
".csv",
|
||||
)
|
||||
|
||||
# geojson
|
||||
geojson_path = tribal_data_path / "geojson"
|
||||
remove_all_from_dir(geojson_path)
|
Loading…
Add table
Add a link
Reference in a new issue