From 46015f11abc36cc8125e65eea9aec99991270060 Mon Sep 17 00:00:00 2001 From: alperaltuntas Date: Tue, 26 Mar 2024 21:44:58 -0600 Subject: [PATCH] temporarily remove Modified Existing option for mom6_bathy --- visualCaseGen/custom_widget_types/case_creator.py | 12 ++++++------ visualCaseGen/specs/grid_options.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/visualCaseGen/custom_widget_types/case_creator.py b/visualCaseGen/custom_widget_types/case_creator.py index 97d7c59..599c507 100644 --- a/visualCaseGen/custom_widget_types/case_creator.py +++ b/visualCaseGen/custom_widget_types/case_creator.py @@ -239,7 +239,7 @@ def _do_create_case(self, do_exec): # Navigate to the case directory: with self._out: - print(f"{COMMENT}Navigate to the case directory:{RESET}\n") + print(f"{COMMENT}Navigating to the case directory:{RESET}\n") print(f"cd {caseroot}\n") # Apply case modifications, e.g., xmlchanges and user_nl changes @@ -323,7 +323,7 @@ def _update_modelgrid_aliases(self, custom_grid_path, ocn_grid, do_exec): # log the modification of modelgrid_aliases.xml: with self._out: print( - f'{BPOINT} Update ccs_config/modelgrid_aliases_nuopc.xml file to include the new ' + f'{BPOINT} Updating ccs_config/modelgrid_aliases_nuopc.xml file to include the new ' f'resolution "{resolution_name}" consisting of the following component grids.\n' f' atm grid: "{atm_grid}", lnd grid: "{lnd_grid}", ocn grid: "{ocn_grid}".\n' ) @@ -428,7 +428,7 @@ def _update_component_grids( # log the modification of component_grids.xml: with self._out: print( - f'{BPOINT} Update ccs_config/component_grids_nuopc.xml file to include ' + f'{BPOINT} Updating ccs_config/component_grids_nuopc.xml file to include ' f'newly generated ocean grid "{ocn_grid}" with the following properties:\n' f' nx: {cvars["OCN_NX"].value}, ny: {cvars["OCN_NY"].value}.' f' ocean mesh: {ocn_mesh}.{RESET}\n' @@ -531,7 +531,7 @@ def _run_create_newcase(self, caseroot, compset, resolution, do_exec): # log the command: with self._out: print( - f"{COMMENT}Run the create_newcase tool with the following command:{RESET}\n" + f"{COMMENT}Running the create_newcase tool with the following command:{RESET}\n" ) print(f"{cmd}\n") @@ -603,7 +603,7 @@ def _run_case_setup(self, caseroot, do_exec): cmd += " --non-local" with self._out: print( - f"{COMMENT}Run the case.setup script with the following command:{RESET}\n" + f"{COMMENT}Running the case.setup script with the following command:{RESET}\n" ) print(f"{cmd}\n") if do_exec: @@ -629,7 +629,7 @@ def _apply_user_nl(self, user_nl_filename, var_val_pairs, do_exec): assert all(isinstance(pair, tuple) for pair in var_val_pairs) with self._out: - print(f"{COMMENT}Add parameter changes to {user_nl_filename}:{RESET}\n") + print(f"{COMMENT}Adding parameter changes to {user_nl_filename}:{RESET}\n") for var, val in var_val_pairs: print(f" {var} = {val}") print("") diff --git a/visualCaseGen/specs/grid_options.py b/visualCaseGen/specs/grid_options.py index ac33ba4..4c902f9 100644 --- a/visualCaseGen/specs/grid_options.py +++ b/visualCaseGen/specs/grid_options.py @@ -132,7 +132,7 @@ def set_custom_ocn_grid_options(cime): # OCN_GRID_MODE options cv_custom_ocn_grid_mode = cvars["OCN_GRID_MODE"] - cv_custom_ocn_grid_mode.options = ["Standard", "Modify Existing", "Create New"] + cv_custom_ocn_grid_mode.options = ["Standard", "Create New"] # TODO: add "Modify Existing" option. cv_custom_ocn_grid_mode.tooltips = [ "Select from a list of existing MOM6 grids", "Modify an existing MOM6 grid",