mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-21 09:31:40 -07:00
Run all Census, ETL, Score, Combine and Tilefy in one command (#662)
* Run all Census, ETL, Score, Combine and Tilefy in one command * docker cmd * some docker improvements * feedback updates * lint
This commit is contained in:
parent
1083e953da
commit
5bd63c083b
4 changed files with 99 additions and 13 deletions
|
@ -187,6 +187,7 @@ def score_folder_cleanup() -> None:
|
|||
remove_all_from_dir(data_path / "score" / "csv")
|
||||
remove_all_from_dir(data_path / "score" / "geojson")
|
||||
remove_all_from_dir(data_path / "score" / "downloadable")
|
||||
remove_all_from_dir(data_path / "score" / "tiles")
|
||||
|
||||
|
||||
def temp_folder_cleanup() -> None:
|
||||
|
@ -198,6 +199,19 @@ def temp_folder_cleanup() -> None:
|
|||
remove_all_from_dir(data_path / "tmp")
|
||||
|
||||
|
||||
def check_first_run() -> bool:
|
||||
"""Checks if a local flag file has been set and returns False
|
||||
if it hasn't"""
|
||||
|
||||
data_path = settings.APP_ROOT / "data"
|
||||
file = "first_run.txt"
|
||||
|
||||
if not os.path.isfile(data_path / file):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
|
||||
def get_excel_column_name(index: int) -> str:
|
||||
"""Map a numeric index to the appropriate column in Excel. E.g., column #95 is "CR".
|
||||
Only works for the first 1000 columns.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue