Skip to content
Open
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
3 changes: 2 additions & 1 deletion Python_Engine/Compute/BasePythonEnvironment.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Compute/BasePythonEnvironment.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Compute/BasePythonEnvironment.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
Expand Down Expand Up @@ -79,3 +79,4 @@
}



3 changes: 2 additions & 1 deletion Python_Engine/Compute/Download.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Compute/Download.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Compute/Download.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
Expand Down Expand Up @@ -91,7 +91,7 @@

[Description("Download and install a specified version of python, and return the executable for it.")]
[Input("version", "The version of python to download.")]
[Output("pythonExecutable", "The executable (python.exe) for the python version that was installed")]

Check warning on line 94 in Python_Engine/Compute/Download.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Python_Engine/Compute/Download.cs#L94

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public static string DownloadPythonVersion(this PythonVersion version)
{
string url = version.EmbeddableURL();
Expand Down Expand Up @@ -148,3 +148,4 @@
}



3 changes: 2 additions & 1 deletion Python_Engine/Compute/InstallPackage.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Compute/InstallPackage.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Compute/InstallPackage.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
Expand Down Expand Up @@ -85,7 +85,7 @@
[Description("Install packages from a requirements.txt file to a given Python executable.")]
[Input("executable", "The Python executable to install the packages to.")]
[Input("requirements", "The requirements.txt file to install.")]
public static void InstallRequirements(

Check failure on line 88 in Python_Engine/Compute/InstallPackage.cs

View check run for this annotation

BHoMBot-CI / code-compliance

Python_Engine/Compute/InstallPackage.cs#L88

Method name must start with or end with the name of the file - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/MethodNameContainsFileName
string executable,
string requirements
)
Expand Down Expand Up @@ -123,7 +123,7 @@
[Description("Install packages from a requirements.txt file to a given Python environment.")]
[Input("environment", "The Python environment to install the packages to.")]
[Input("requirements", "The requirements.txt file to install.")]
public static void InstallRequirements(

Check failure on line 126 in Python_Engine/Compute/InstallPackage.cs

View check run for this annotation

BHoMBot-CI / code-compliance

Python_Engine/Compute/InstallPackage.cs#L126

Method name must start with or end with the name of the file - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/MethodNameContainsFileName
this PythonEnvironment environment,
string requirements
)
Expand Down Expand Up @@ -178,3 +178,4 @@
}



3 changes: 2 additions & 1 deletion Python_Engine/Compute/Remove.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Compute/Remove.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Compute/Remove.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
Expand Down Expand Up @@ -139,3 +139,4 @@
}



3 changes: 2 additions & 1 deletion Python_Engine/Compute/RequirementsTxt.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Compute/RequirementsTxt.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Compute/RequirementsTxt.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* 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 @@
}



3 changes: 2 additions & 1 deletion Python_Engine/Compute/Run.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Compute/Run.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Compute/Run.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
Expand Down Expand Up @@ -100,3 +100,4 @@
}



3 changes: 2 additions & 1 deletion Python_Engine/Compute/UnzipFile.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Compute/UnzipFile.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Compute/UnzipFile.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
Expand Down Expand Up @@ -83,3 +83,4 @@
}



3 changes: 2 additions & 1 deletion Python_Engine/Compute/VirtualEnvironment.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Compute/VirtualEnvironment.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Compute/VirtualEnvironment.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
Expand Down Expand Up @@ -128,3 +128,4 @@
}



3 changes: 2 additions & 1 deletion Python_Engine/Convert/ToPython.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Convert/ToPython.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Convert/ToPython.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
Expand Down Expand Up @@ -39,3 +39,4 @@
}
}
}

3 changes: 2 additions & 1 deletion Python_Engine/Modify/AddQuotesIfRequired.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Modify/AddQuotesIfRequired.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Modify/AddQuotesIfRequired.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
Expand Down Expand Up @@ -35,7 +35,7 @@
[Description("Adds quotes to a string (usually a file-path) if it contains spaces.")]
[Input("path", "The file-path to add quotes around if necessary.")]
[Output("path", "A usable file-path.")]
public static string AddQuotesIfRequired(this string path)

Check warning on line 38 in Python_Engine/Modify/AddQuotesIfRequired.cs

View check run for this annotation

BHoMBot-CI / code-compliance

Python_Engine/Modify/AddQuotesIfRequired.cs#L38

Modify methods should return void, or their return type should be different to the input type of their first parameter - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/ModifyReturnsDifferentType
{
return !string.IsNullOrWhiteSpace(path) ?
path.Contains(" ") && (!path.StartsWith("\"") && !path.EndsWith("\"")) ?
Expand All @@ -48,3 +48,4 @@




4 changes: 2 additions & 2 deletions Python_Engine/Python_Engine.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<Description>https://github.com/BHoM/Python_Toolkit</Description>
<Version>6.0.0</Version>
<Authors>BHoM</Authors>
<Copyright>Copyright © https://github.com/BHoM</Copyright>
<RootNamespace>BH.Engine.Python</RootNamespace>
<FileVersion>8.2.0.0</FileVersion>
<FileVersion>9.1.0.0</FileVersion>

Check failure on line 10 in Python_Engine/Python_Engine.csproj

View check run for this annotation

BHoMBot-CI / project-compliance

Python_Engine/Python_Engine.csproj#L10

Assembly File Version should be set to 9.0.0.0
<OutputPath>..\Build\</OutputPath>
</PropertyGroup>
<ItemGroup>
Expand Down Expand Up @@ -36,7 +36,7 @@
</Reference>
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy $(TargetDir)$(TargetFileName) $(ProgramData)\BHoM\Assemblies /Y" />

Check warning on line 39 in Python_Engine/Python_Engine.csproj

View check run for this annotation

BHoMBot-CI / project-compliance

Python_Engine/Python_Engine.csproj#L39

Post Build event should be correctly set to copy the compiled DLL to the BHoM Assemblies folder
</Target>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="if not exist $(ProgramData)\BHoM\Extensions\PythonEnvironments mkdir $(ProgramData)\BHoM\Extensions\PythonEnvironments&#xD;&#xA;if not exist $(ProgramData)\BHoM\Extensions\PythonCode mkdir $(ProgramData)\BHoM\Extensions\PythonCode&#xD;&#xA; &#xD;&#xA;if exist $(ProgramData)\BHoM\Extensions\PythonCode\$(SolutionName) rmdir $(ProgramData)\BHoM\Extensions\PythonCode\$(SolutionName) /S /Q&#xD;&#xA;mkdir $(ProgramData)\BHoM\Extensions\PythonCode\$(SolutionName)&#xD;&#xA; &#xD;&#xA;robocopy $(ProjectDir)Python $(ProgramData)\BHoM\Extensions\PythonCode\$(SolutionName) /mir /xf &quot;*.pyc&quot; &quot;*.ipynb&quot; /xd &quot;__*__&quot; &quot;.*&quot; &gt; output.log&#xD;&#xA;del output.log" />
Expand Down
3 changes: 2 additions & 1 deletion Python_Engine/Query/Directory.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Query/Directory.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Query/Directory.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
Expand Down Expand Up @@ -79,3 +79,4 @@




3 changes: 2 additions & 1 deletion Python_Engine/Query/EmbeddableURL.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Query/EmbeddableURL.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Query/EmbeddableURL.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
Expand Down Expand Up @@ -92,3 +92,4 @@




3 changes: 2 additions & 1 deletion Python_Engine/Query/IsValidEnvironmentName.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Query/IsValidEnvironmentName.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Query/IsValidEnvironmentName.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* 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 @@




3 changes: 2 additions & 1 deletion Python_Engine/Query/ToolkitName.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Query/ToolkitName.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Query/ToolkitName.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
Expand Down Expand Up @@ -40,3 +40,4 @@




3 changes: 2 additions & 1 deletion Python_Engine/Query/Version.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Query/Version.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Query/Version.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* 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 @@
}



3 changes: 2 additions & 1 deletion Python_Engine/Query/VirtualEnvironment.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_Engine/Query/VirtualEnvironment.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_Engine/Query/VirtualEnvironment.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* 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 @@




3 changes: 2 additions & 1 deletion Python_oM/Enums/PythonVersion.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_oM/Enums/PythonVersion.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_oM/Enums/PythonVersion.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
Expand Down Expand Up @@ -131,3 +131,4 @@
}



3 changes: 2 additions & 1 deletion Python_oM/PythonEnvironment.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*

Check failure on line 4 in Python_oM/PythonEnvironment.cs

View check run for this annotation

BHoMBot-CI / copyright-compliance

Python_oM/PythonEnvironment.cs#L3-L4

Copyright message is invalid - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasValidCopyright
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
Expand Down Expand Up @@ -41,3 +41,4 @@




4 changes: 2 additions & 2 deletions Python_oM/Python_oM.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<Description>https://github.com/BHoM/Python_Toolkit</Description>
<Version>6.0.0</Version>
<Authors>BHoM</Authors>
<Copyright>Copyright © https://github.com/BHoM</Copyright>
<RootNamespace>BH.oM.Python</RootNamespace>
<FileVersion>8.2.0.0</FileVersion>
<FileVersion>9.1.0.0</FileVersion>

Check failure on line 11 in Python_oM/Python_oM.csproj

View check run for this annotation

BHoMBot-CI / project-compliance

Python_oM/Python_oM.csproj#L11

Assembly File Version should be set to 9.0.0.0
<OutputPath>..\Build\</OutputPath>
</PropertyGroup>

Expand All @@ -21,7 +21,7 @@
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy $(TargetDir)$(TargetFileName) $(ProgramData)\BHoM\Assemblies /Y" />

Check warning on line 24 in Python_oM/Python_oM.csproj

View check run for this annotation

BHoMBot-CI / project-compliance

Python_oM/Python_oM.csproj#L24

Post Build event should be correctly set to copy the compiled DLL to the BHoM Assemblies folder
</Target>

</Project>
Loading