Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3aa8397
Update assembly file version to 9.1.0.0
BHoMBot Dec 22, 2025
42c3b74
Update copyright headers to new year 2026
BHoMBot Dec 22, 2025
ba556f5
Start of milestone changes for 9.1 (#333)
michaelhoehn Dec 23, 2025
1ac6cb4
Fixed incorrect type for wind from csv
Tom-Kingstone Jan 29, 2026
65262a5
add unit test and fix unit test csv file.
Tom-Kingstone Jan 29, 2026
e369c98
fix HBJSONToGEMCommand, and test_wind.py
Tom-Kingstone Jan 29, 2026
fcf6ee2
fix hbjson to gem
Tom-Kingstone Jan 29, 2026
9db157e
fix not sending tracebacks for errors back to caller
Tom-Kingstone Jan 29, 2026
746df25
and the rest of them
Tom-Kingstone Jan 29, 2026
bb8ee21
Python bug fixes, including `Wind.from_csv` datetimeindex (#334)
jamesramsden-bh Feb 2, 2026
c1028e9
change to input threshold float values individually instead of as a s…
Tom-Kingstone Feb 25, 2026
4a760d9
Fix float parse error for Facade Condensation Risk Heatmap/Chart (#337)
jamesramsden-bh Mar 17, 2026
0d8fc34
do plot style context for all valid plot methods (and properly pass t…
Tom-Kingstone Mar 3, 2026
b2c7cb5
return axes from shelter vis plot
Tom-Kingstone Mar 9, 2026
40b6198
update docstrings with style_context kwarg
Tom-Kingstone Mar 13, 2026
ac3e631
Updated plot methods to use new plt.style.context() (#338)
jamesramsden-bh Mar 19, 2026
e63d79f
fix json decode error and rename SimulationId to SimulationID(part 1)
Tom-Kingstone Mar 25, 2026
f305e46
fix #341
Tom-Kingstone Mar 25, 2026
4c7a8e2
Apply suggestion from @Tom-Kingstone
Tom-Kingstone Mar 25, 2026
44d99c5
Fix typo in description for PythonCodeDirectory method
jamesramsden-bh Mar 25, 2026
767db4b
Fix json decode error in Walkability, and compliance (#343)
jamesramsden-bh Mar 26, 2026
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
3 changes: 2 additions & 1 deletion LadybugTools_Adapter/AdapterActions/Execute.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -89,3 +89,4 @@ private List<object> RunCommand(IExecuteCommand command, ActionConfig actionConf
}



Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -109,3 +109,4 @@ private List<object> RunCommand(DiurnalPlotCommand command, ActionConfig actionC
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -96,3 +96,4 @@ private List<object> RunCommand(EPWToCSVCommand command, ActionConfig actionConf
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down 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 Expand Up @@ -110,3 +111,4 @@ private List<object> RunCommand(FacadeCondensationRiskCommand command, ActionCon
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -95,3 +95,4 @@ public List<object> RunCommand(GEMToHBJSONCommand command, ActionConfig actionCo
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -86,3 +86,4 @@ private List<object> RunCommand(GetMaterialCommand command, ActionConfig actionC
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -87,3 +87,4 @@ private List<object> RunCommand(GetTypologyCommand command, ActionConfig actionC
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -79,19 +79,20 @@ public List<object> RunCommand(HBJSONToGEMCommand command, ActionConfig actionCo
}

//as the file output is hard to verify by itself, check that no errors got output to stderr log
success &= !result.Contains("Traceback (most recent call last):");
success &= (!result.Contains("Traceback (most recent call last):") || result.Length == 0);

if (!success)
{
BH.Engine.Base.Compute.RecordError($"An error occurred while converting the file to gem.\nPython output: {result}.");
return new List<object>();
}

string outputFileName = Path.Combine(command.OutputDirectory, Path.GetFileNameWithoutExtension(command.HBJSONFile.FileName) + ".hbjson");
string outputFileName = Path.Combine(command.OutputDirectory, Path.GetFileNameWithoutExtension(command.HBJSONFile.FileName) + ".gem");
File.WriteAllText(outputFileName, result);

m_executeSuccess = success;
return new List<object> { outputFileName };
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -98,3 +98,4 @@ private List<object> RunCommand(HeatPlotCommand command, ActionConfig actionConf
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -85,3 +85,4 @@ private List<object> RunCommand(RunExternalComfortCommand command, ActionConfig
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -101,3 +101,4 @@ private List<object> RunCommand(RunSimulationCommand command, ActionConfig actio
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -120,3 +120,4 @@ private List<object> RunCommand(SolarRadiationPlotCommand command, ActionConfig
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -103,3 +103,4 @@ private List<object> RunCommand(SunPathPlotCommand command, ActionConfig actionC
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -109,11 +109,11 @@
}


try
{
CustomObject obj = (CustomObject)BH.Engine.Serialiser.Convert.FromJson(result);
PlotInformation info = Convert.ToPlotInformation(obj, new UTCIData());
ExternalComfort ec = Convert.ToExternalComfort((obj.CustomData["external_comfort"] as CustomObject).CustomData);

Check warning on line 116 in LadybugTools_Adapter/AdapterActions/Execute/UTCIHeatPlotCommand.cs

View check run for this annotation

BHoMBot-CI / beta-code-compliance

LadybugTools_Adapter/AdapterActions/Execute/UTCIHeatPlotCommand.cs#L116

The use of CustomData within the code is discouraged except in circumstances where volatile data is being used. - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsUsingCustomData
m_executeSuccess = true;
return new List<object>() { info, ec };
}
Expand All @@ -125,3 +125,4 @@
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -93,11 +93,11 @@
System.IO.File.Delete(argFile);
}

try
{
CustomObject obj = (CustomObject)BH.Engine.Serialiser.Convert.FromJson(result);
PlotInformation info = Convert.ToPlotInformation(obj, new UTCIData());
ExternalComfort ec = Convert.ToExternalComfort((obj.CustomData["external_comfort"] as CustomObject).CustomData);

Check warning on line 100 in LadybugTools_Adapter/AdapterActions/Execute/WalkabilityPlotCommand.cs

View check run for this annotation

BHoMBot-CI / beta-code-compliance

LadybugTools_Adapter/AdapterActions/Execute/WalkabilityPlotCommand.cs#L100

The use of CustomData within the code is discouraged except in circumstances where volatile data is being used. - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsUsingCustomData
m_executeSuccess = true;
return new List<object>() { info, ec };
}
Expand All @@ -109,3 +109,4 @@
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -102,3 +102,4 @@ private List<object> RunCommand(WindroseCommand command, ActionConfig actionConf
}
}
}

3 changes: 2 additions & 1 deletion LadybugTools_Adapter/AdapterActions/Pull.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -72,3 +72,4 @@ public override IEnumerable<object> Pull(IRequest request, PullType pullType = P
}



3 changes: 2 additions & 1 deletion LadybugTools_Adapter/AdapterActions/Push.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -70,3 +70,4 @@ public override List<object> Push(IEnumerable<object> objects, string tag = "",
}



3 changes: 2 additions & 1 deletion LadybugTools_Adapter/CRUD/CreateLadybug.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -53,3 +53,4 @@ public static void CreateLadybug(List<ILadybugTools> objects, LadybugConfig conf
}



3 changes: 2 additions & 1 deletion LadybugTools_Adapter/CRUD/Read.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -43,3 +43,4 @@ protected override IEnumerable<IBHoMObject> IRead(Type type, IList indices = nul
}



3 changes: 2 additions & 1 deletion LadybugTools_Adapter/Compute/SendHttp.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -54,3 +54,4 @@ public static partial class Compute
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -37,10 +37,10 @@
{
Header header = new Header();
List<double?> hourlyValues = new List<double?>();
try
{
if (oldObject["header"].GetType() == typeof(CustomObject))
oldObject["header"] = (oldObject["header"] as CustomObject).CustomData;

Check warning on line 43 in LadybugTools_Adapter/Convert/Collections/HourlyContinuousCollection.cs

View check run for this annotation

BHoMBot-CI / beta-code-compliance

LadybugTools_Adapter/Convert/Collections/HourlyContinuousCollection.cs#L42-L43

The use of CustomData within the code is discouraged except in circumstances where volatile data is being used. - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsUsingCustomData
header = ToHeader(oldObject["header"] as Dictionary<string, object>);
}
catch (Exception ex)
Expand Down Expand Up @@ -78,3 +78,4 @@
}



3 changes: 2 additions & 1 deletion LadybugTools_Adapter/Convert/Constructions/EnergyMaterial.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -152,3 +152,4 @@ public static Dictionary<string, object> FromEnergyMaterial(BH.oM.LadybugTools.E
}



Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -221,3 +221,4 @@ public static Dictionary<string, object> FromEnergyMaterialVegetation(BH.oM.Lady
}



3 changes: 2 additions & 1 deletion LadybugTools_Adapter/Convert/FromBHoM.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -101,3 +101,4 @@ private static Dictionary<string, object> Jsonify(this ILadybugTools obj)
}



3 changes: 2 additions & 1 deletion LadybugTools_Adapter/Convert/FromColourMap.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -201,3 +201,4 @@ public static string FromColourMap(this ColourMap colourMap)
}
}


Loading