Skip to content

Commit

Permalink
standardize sys-param parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate committed Mar 7, 2024
1 parent ac67e2f commit 137b56c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/uo_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -362,23 +362,23 @@ def opt_des_params
@subopts = Optimist.options do
banner "\nURBANopt #{@command}:\n \n"

opt :sys_param_file, "\nBuild a system parameters JSON config file for Modelica District Energy System or Ground Heat Exchanger simulation using URBANopt SDK outputs\n" \
opt :sys_param, "\nBuild a system parameters JSON config file for Modelica District Energy System or Ground Heat Exchanger simulation using URBANopt SDK outputs\n" \
"Provide path/name of json file to be created\n" \
'Example: uo des_params --sys-param-file path/to/sys_params.json', type: String, required: true, short: :y
'Example: uo des_params --sys-param path/to/sys_params.json', type: String, required: true, short: :y

opt :scenario, "\nPath to the scenario CSV file\n" \
"Example: uo des_params --sys-param-file path/to/sys_params.json --scenario path/to/baseline_scenario.csv\n", type: String, required: true, short: :s
"Example: uo des_params --sys-param path/to/sys_params.json --scenario path/to/baseline_scenario.csv\n", type: String, required: true, short: :s

opt :feature, "\nPath to the feature JSON file\n" \
"Example: uo des_params --sys-param-file path/to/sys_params.json --feature path/to/example_project.json\n", type: String, required: true, short: :f
"Example: uo des_params --sys-param path/to/sys_params.json --feature path/to/example_project.json\n", type: String, required: true, short: :f

opt :model_type, "\nSelection for which kind of DES simulation to perform\n" \
"Valid choices: 'time_series'", type: String, default: 'time_series'

opt :ghe, "\nUse this argument to add Ground Heat Exchanger properties to the System Parameter File.\n", short: :g

opt :overwrite, "\nDelete and rebuild existing sys-param file\n", short: :o
'Example: uo des_params --sys-param-file path/to/sys_params.json --feature path/to/example_project.json --overwrite'
'Example: uo des_params --sys-param path/to/sys_params.json --feature path/to/example_project.json --overwrite'
end
end

Expand Down Expand Up @@ -1739,8 +1739,8 @@ def self.install_python_dependencies
end

des_cli_root = "#{res[:pvars][:gmt_path]} build-sys-param"
if @opthash.subopts[:sys_param_file]
des_cli_addition = " #{@opthash.subopts[:sys_param_file]}"
if @opthash.subopts[:sys_param]
des_cli_addition = " #{@opthash.subopts[:sys_param]}"
if @opthash.subopts[:scenario]
des_cli_addition += " #{@opthash.subopts[:scenario]}"
end
Expand Down

0 comments on commit 137b56c

Please sign in to comment.