Skip to content
Open
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,6 @@ private List<object> RunCommand(FacadeCondensationRiskCommand command, ActionCon
{
thresholds = command.Thresholds;
}
string thresholdsStr = string.Join(" ", thresholds);

string epwFile = System.IO.Path.GetFullPath(command.EPWFile.GetFullFileName());

Expand All @@ -74,9 +73,11 @@ private List<object> RunCommand(FacadeCondensationRiskCommand command, ActionCon
else
commandArg = "plot/facade_condensation_risk_chart";

// run the process
List<string> args = new List<string>() { "-command", commandArg, "-e", epwFile.Replace('\\', '/'), "-t", thresholdsStr, "-p", command.OutputLocation.Replace('\\', '/') };
//construct args: insert thresholds as a range as concatenating them into a space delimited string causes the numbers to be wrapped in quotes which breaks the python argument parser
List<string> args = new List<string>() { "-command", commandArg, "-e", epwFile.Replace('\\', '/'), "-t", "-p", command.OutputLocation.Replace('\\', '/') };
args.InsertRange(args.IndexOf("-t") + 1, thresholds.Select(x => x.ToString()));

// run the process
string result = "";
bool success;

Expand Down