From 3d2c47efcbb9f1eea99aaf94a06077952d7d3e47 Mon Sep 17 00:00:00 2001 From: changliao1025 Date: Tue, 7 May 2024 08:19:46 -0700 Subject: [PATCH] simplify and keep using region for now --- examples/susquehanna/run_simulation_mpas.py | 6 +++--- pyflowline/configuration/change_json_key_value.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/susquehanna/run_simulation_mpas.py b/examples/susquehanna/run_simulation_mpas.py index 1531502..8ed03dd 100644 --- a/examples/susquehanna/run_simulation_mpas.py +++ b/examples/susquehanna/run_simulation_mpas.py @@ -8,7 +8,7 @@ #%% Define the case information (configuration file parameters) -sDomainName = 'susquehanna' +sRegion = 'susquehanna' iCase_index = 1 iFlag_simulation = 0 iFlag_visualization = 1 @@ -21,9 +21,9 @@ # Define the full path to the input and output folders. oFolder_input = oPath_parent.joinpath( - 'data', sDomainName, 'input') + 'data', sRegion, 'input') oFolder_output = oPath_parent.joinpath( - 'data', sDomainName, 'output') + 'data', sRegion, 'output') # Define the full path to the domain ("parent") configuration file. oFilename_domain_config = oFolder_input.joinpath( diff --git a/pyflowline/configuration/change_json_key_value.py b/pyflowline/configuration/change_json_key_value.py index 13b3737..8757876 100644 --- a/pyflowline/configuration/change_json_key_value.py +++ b/pyflowline/configuration/change_json_key_value.py @@ -3,7 +3,7 @@ import shutil import tempfile -def pyflowline_change_json_key_value(sFilename_json_in, sKey, new_value, iFlag_basin_in=None): +def change_json_key_value(sFilename_json_in, sKey, new_value, iFlag_basin_in=None): """ Change the value associated with the specified key in a JSON file safely.