Skip to content

Commit

Permalink
Fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraser Greenroyd committed Sep 5, 2023
1 parent 56af20a commit 6428cf7
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
41 changes: 41 additions & 0 deletions Python_Engine/Convert/ToPython.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
*
* The BHoM is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3.0 of the License, or
* (at your option) any later version.
*
* The BHoM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this code. If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BH.oM.Base.Attributes;

namespace BH.Engine.Python
{
public static partial class Convert
{
// TODO - REMOVE THIS METHOD, NO LONGER REQUIRED, PLUS IT HAS AN OLD ToBeRemoved TAG
[ToBeRemoved("5.3", "This method included in order to fool versioning into playing nicely.")]
public static bool ToPython<T>(this T[,] input)
{
return false;
}
}
}
2 changes: 1 addition & 1 deletion Python_Engine/Python_Engine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<Compile Include="Compute\VirtualEnvironment.cs" />
<Compile Include="Compute\UnzipFile.cs" />
<Compile Include="Compute\Download.cs" />
<Compile Include="Convert\ToPython.cs" />
<Compile Include="Modify\AddQuotesIfRequired.cs" />
<Compile Include="Query\VirtualEnvironment.cs" />
<Compile Include="Query\Version.cs" />
Expand All @@ -96,7 +97,6 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Convert\" />
<Folder Include="Create\" />
</ItemGroup>
<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion Python_Engine/Versioning_63.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"BH.Engine.Python.Query.VirtualEnv(System.String)": "This method has been removed.",
"BH.Engine.Python.Query.VirtualEnvPythonExePath(System.String)": "This method has been removed.",
"BH.Engine.Python.Query.VirtualEnvDirectory(System.String)": "This method has been removed.",
"BH.Engine.Python.Convert.ToPython[T](T[,])": "This method has been removed.",
"BH.Engine.Python.Compute.RunCommandAsync(System.String, System.Boolean, System.String)": "This method has been removed.",
"BH.Engine.Python.Compute.RunCommandBool(System.String, System.Boolean, System.String, System.Double)": "This method has been removed.",
"BH.Engine.Python.Compute.RunPythonScript(BH.oM.Python.PythonEnvironment, System.String, System.Collections.Generic.List<System.String>)": "This method has been removed.",
Expand Down

0 comments on commit 6428cf7

Please sign in to comment.