Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More versioning #114

Merged
merged 2 commits into from
Sep 5, 2023
Merged
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
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(System.Object[,])": "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