Skip to content

Commit

Permalink
Fix for EPWToCSV (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraser Greenroyd authored Nov 24, 2023
2 parents 89b815a + 4df647e commit c8e1875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LadybugTools_Engine/Compute/EPWtoCSV.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static string EPWtoCSV(string epwFile, bool includeAdditional = false)
PythonEnvironment env = InstallPythonEnv_LBT(true);

epwFile = System.IO.Path.GetFullPath(epwFile);
string csvFile = System.IO.Path.ChangeExtension(epwFile, ".hbjson");
string csvFile = System.IO.Path.ChangeExtension(epwFile, ".csv");

string script = Path.Combine(Python.Query.DirectoryCode(), "LadybugTools_Toolkit\\src\\ladybugtools_toolkit\\bhom\\wrapped", "epw_to_csv.py");

Expand All @@ -62,6 +62,7 @@ public static string EPWtoCSV(string epwFile, bool includeAdditional = false)
if (!File.Exists(csvFile))
{
BH.Engine.Base.Compute.RecordError($"File conversion failed due to {result}");
return null;
}

return csvFile;
Expand Down

0 comments on commit c8e1875

Please sign in to comment.