Compare commits

...

3 Commits

Author SHA1 Message Date
C-SELLERS
c75b4a98b4 Update Research Images with Newer Jupyter 2022-02-11 15:45:51 -08:00
C-SELLERS
288501bd3b Install NetCoreDbg 2022-02-11 15:45:51 -08:00
C-SELLERS
9e7ead1a19 Deprecate breakpoints
Drop Watchlist

Remove breakpoints from lean

Prep install of NetCoreDbg

Cleanup
2022-02-11 15:45:51 -08:00
7 changed files with 8 additions and 102 deletions

View File

@@ -17,7 +17,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Newtonsoft.Json;
using QuantConnect.Securities;
@@ -68,22 +67,11 @@ namespace QuantConnect.Packets
[JsonProperty(PropertyName = "iTradeableDates")]
public int TradeableDates = 0;
/// <summary>
/// The initial breakpoints for debugging, if any
/// </summary>
[JsonProperty(PropertyName = "aBreakpoints")]
public List<Breakpoint> Breakpoints = new List<Breakpoint>();
/// <summary>
/// The initial Watchlist for debugging, if any
/// </summary>
[JsonProperty(PropertyName = "aWatchlist")]
public List<string> Watchlist = new List<string>();
/// <summary>
/// True, if this is a debugging backtest
/// </summary>
public bool IsDebugging => Breakpoints.Any();
[JsonProperty(PropertyName = "bDebugging")]
public bool IsDebugging;
/// <summary>
/// Optional initial cash amount if set

View File

@@ -1,38 +0,0 @@
/*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
using Newtonsoft.Json;
namespace QuantConnect.Packets
{
/// <summary>
/// A debugging breakpoint
/// </summary>
public class Breakpoint
{
/// <summary>
/// The file name
/// </summary>
[JsonProperty(PropertyName = "fileName")]
public string FileName { get; set; }
/// <summary>
/// The line number
/// </summary>
[JsonProperty(PropertyName = "lineNumber")]
public int LineNumber { get; set; }
}
}

View File

@@ -14,6 +14,10 @@ RUN pip install --no-cache-dir debugpy~=1.5.1 pydevd-pycharm~=201.8538.36
# Install vsdbg for remote C# debugging in Visual Studio and Visual Studio Code
RUN wget https://aka.ms/getvsdbgsh -O - 2>/dev/null | /bin/sh /dev/stdin -v 16.9.20122.2 -l /root/vsdbg
# Install NetCoreDbg
RUN wget https://github.com/Samsung/netcoredbg/releases/download/2.0.0-880/netcoredbg-linux-amd64.tar.gz \
&& tar xvzf netcoredbg-linux-amd64.tar.gz && rm netcoredbg-linux-amd64.tar.gz
COPY ./DataLibraries /Lean/Launcher/bin/Debug/
COPY ./AlphaStreams/QuantConnect.AlphaStream/bin/Debug/ /Lean/Launcher/bin/Debug/
COPY ./Lean/Launcher/bin/Debug/ /Lean/Launcher/bin/Debug/

View File

@@ -21,8 +21,6 @@ RUN if [ "$(uname -m)" = "aarch64" ]; then \
mv tini /usr/local/bin/tini && \
chmod +x /usr/local/bin/tini
RUN conda install -y -c conda-forge notebook=6.0.3 && conda clean -y --all
# Install clr-loader for PythonNet
RUN pip install --no-cache-dir clr-loader==0.1.6

View File

@@ -83,7 +83,7 @@ RUN pip install --no-cache-dir \
setuptools-git==1.2 \
xarray==0.15.1 \
plotly==4.7.1 \
jupyterlab==2.1.2 \
jupyterlab==3.2.6 \
tensorflow==1.15.2 \
docutils==0.14 \
cvxopt==1.2.0 \

View File

@@ -69,7 +69,7 @@ RUN conda install -y \
pandas=0.25.3 \
numpy=1.18.1 \
wrapt=1.12.1 \
jupyterlab=2.1.2 \
jupyterlab=3.2.6 \
matplotlib=3.2.1 \
scipy=1.4.1 \
&& conda clean -y --all

View File

@@ -1,46 +0,0 @@
/*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using System.Collections.Generic;
using Newtonsoft.Json;
using NUnit.Framework;
using QuantConnect.Packets;
namespace QuantConnect.Tests.Common.Packets
{
[TestFixture, Parallelizable(ParallelScope.All)]
public class BreakpointTests
{
[Test]
public void SurvivesSerializationRoundTrip()
{
var breakpoints = new List<Breakpoint>
{
new Breakpoint{ FileName = "MichelAngelo", LineNumber = 1475},
new Breakpoint{ FileName = "LeonardoDaVinci", LineNumber = 1452}
};
var serialized = JsonConvert.SerializeObject(breakpoints);
var deserialized = JsonConvert.DeserializeObject<List<Breakpoint>>(serialized);
Assert.AreEqual(deserialized.Count, 2);
Assert.AreEqual(deserialized[0].FileName, "MichelAngelo");
Assert.AreEqual(deserialized[0].LineNumber, 1475);
Assert.AreEqual(deserialized[1].FileName, "LeonardoDaVinci");
Assert.AreEqual(deserialized[1].LineNumber, 1452);
}
}
}