diff --git a/LadybugTools_Adapter/AdapterActions/Execute/FacadeCondensationRiskCommand.cs b/LadybugTools_Adapter/AdapterActions/Execute/FacadeCondensationRiskCommand.cs index bd6b8513..d43e5599 100644 --- a/LadybugTools_Adapter/AdapterActions/Execute/FacadeCondensationRiskCommand.cs +++ b/LadybugTools_Adapter/AdapterActions/Execute/FacadeCondensationRiskCommand.cs @@ -64,7 +64,6 @@ private List RunCommand(FacadeCondensationRiskCommand command, ActionCon { thresholds = command.Thresholds; } - string thresholdsStr = string.Join(" ", thresholds); string epwFile = System.IO.Path.GetFullPath(command.EPWFile.GetFullFileName()); @@ -74,9 +73,11 @@ private List RunCommand(FacadeCondensationRiskCommand command, ActionCon else commandArg = "plot/facade_condensation_risk_chart"; - // run the process - List args = new List() { "-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 args = new List() { "-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;