Skip to content

Commit

Permalink
a few more dataset name changes needed
Browse files Browse the repository at this point in the history
  • Loading branch information
henryaddison committed Jun 25, 2024
1 parent ac877c4 commit 09f7d99
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions bin/rename-dataset-in-configs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,16 @@ def save_config(config: config_dict.ConfigDict, config_path: str) -> None:


def update_dataset_name(dataset_name: str) -> str:
return (
dataset_name.replace("_eqvt", "_pr")
.replace("_random-season", "")
.replace("bham_gcmx", "bham64_ccpm")
.replace("bham_60km", "bham64_gcm")
)
# V1 migration
# return (
# dataset_name.replace("_eqvt", "_pr")
# .replace("_random-season", "")
# .replace("bham_gcmx", "bham64_ccpm")
# .replace("bham_60km", "bham64_gcm")
# )

# V2 migration
return dataset_name.replace("bham_ccpm", "bham64_ccpm")


def update_config(config: config_dict.ConfigDict) -> config_dict.ConfigDict:
Expand Down

0 comments on commit 09f7d99

Please sign in to comment.