Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDRP-1097-create-folder-structure: years and surveys passed to functi… #399

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions helpers/make_network_dirs_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def make_dir(dir):
print(f"Directory {dir} already exists.")


def run_make_dirs():
def run_make_dirs(years, surveys):
"""Creates all directories based on the `tree` structure.

tree (dict) converted to list of lists by function src.utils.helpers.tree_to_list.
Expand All @@ -31,8 +31,6 @@ def run_make_dirs():
surveys.

"""
years = ["2022", "2023"]
surveys = ["BERD", "PNP"]

for year in years:
for survey in surveys:
Expand Down Expand Up @@ -111,4 +109,8 @@ def run_make_dirs():


if __name__ == "__main__":
run_make_dirs()

years = ["2022", "2023"]
surveys = ["BERD", "PNP"]

run_make_dirs(years, surveys)
4 changes: 3 additions & 1 deletion helpers/make_s3_dirs_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,6 @@ def run_make_dirs():


if __name__ == "__main__":
run_make_dirs()
years = ["2022", "2023"]
surveys = ["BERD", "PNP"]
run_make_dirs(years, surveys)
Loading