Skip to content

Commit

Permalink
Remove the suffix from folder
Browse files Browse the repository at this point in the history
  • Loading branch information
supermarkion committed Oct 28, 2024
1 parent 191de61 commit cd54e17
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def run_validation(
for code in study_site_codes:
study_region_files.extend([file for file in files if code in file])

local_folder = f"performance-report/{study_site_name}_{algo_name}_{suffix}"
local_folder = f"performance-report/{study_site_name}_{algo_name}"

print(local_folder)

Expand All @@ -576,7 +576,7 @@ def run_validation(
]

for study_site in study_sites:
save_folder = f"performance-report/{study_site}_{algo_name}_{suffix}"
save_folder = f"performance-report/{study_site}_{algo_name}"

generate_result_by_study_site_folder(
algo_name,
Expand All @@ -599,9 +599,9 @@ def run_validation(
overall_climate_list = []

for study_site in study_sites:
save_folder = f"performance-report/{study_site}_{algo_name}_{suffix}"
csv_file_name = f"{algo_name}_{study_site}-{year}-{year_basis}-{suffix}.csv"
climate_file_name = f"{algo_name}_{study_site}-{year}-{year_basis}_{suffix}_Climate_Validation_statistics.csv"
save_folder = f"performance-report/{study_site}_{algo_name}"
csv_file_name = f"{algo_name}_{study_site}-{year}-{year_basis}.csv"
climate_file_name = f"{algo_name}_{study_site}-{year}-{year_basis}_Climate_Validation_statistics.csv"

# result CSV
overall_result.append(pd.read_csv(f"{save_folder}/{csv_file_name}"))
Expand Down

0 comments on commit cd54e17

Please sign in to comment.