Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Converting getting string value from path added extra '"' characters … #63

Merged
merged 1 commit into from
Oct 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def run(model, runner, user_arguments)
return false
end

osmPath_2 = runner.getStringArgumentValue("save_path",user_arguments)
osmPath_2 = runner.getPathArgumentValue("save_path",user_arguments).to_s

# stop script if no spaces are selected.
anyInSelection = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run(model, runner, user_arguments)
return false
end

osmPath_2 = runner.getStringArgumentValue("import_path",user_arguments)
osmPath_2 = runner.getPathArgumentValue("import_path",user_arguments).to_s
if osmPath_2.empty?
runner.registerError("Non-empty path argument is required.")
return false
Expand Down
2 changes: 1 addition & 1 deletion plugin/openstudio/user_scripts/Reports/Export_RPX_File.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def run(model, runner, user_arguments)
end

thermal_zone = runner.getOptionalWorkspaceObjectChoiceValue("thermal_zone",user_arguments,model) #model is passed in because of argument type
save_path = runner.getStringArgumentValue("save_path",user_arguments)
save_path = runner.getPathArgumentValue("save_path",user_arguments).to_s

if thermal_zone.empty?
handle = runner.getStringArgumentValue("thermal_zone",user_arguments)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def run(model, runner, user_arguments)
return false
end

open_path = runner.getStringArgumentValue("open_path",user_arguments)
open_path = runner.getPathArgumentValue("open_path",user_arguments).to_s
remove_errors = runner.getBoolArgumentValue("remove_errors",user_arguments)
remove_warnings = runner.getBoolArgumentValue("remove_warnings",user_arguments)

Expand Down
2 changes: 1 addition & 1 deletion plugin/openstudio/user_scripts/Reports/SpaceType_Report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def run(model, runner, user_arguments)
return false
end

save_path = runner.getStringArgumentValue("save_path",user_arguments)
save_path = runner.getPathArgumentValue("save_path",user_arguments).to_s

# create file
File.open(save_path, 'w') do |file|
Expand Down