Refactors OnFrameworkData in AlgorithmPythonWrapper

`AlgorithmPythonWrapper.OnFrameworkData` should call the base class method (`QCAlgorithmFramework.OnFrameworkData`) directly instead of trying to call this method from the python script
This commit is contained in:
AlexCatarino
2018-03-28 10:44:55 +01:00
parent bfe2f7f33f
commit 5963f7e372
@@ -537,13 +537,7 @@ namespace QuantConnect.AlgorithmFactory.Python.Wrappers
/// Used to send data updates to algorithm framework models
/// </summary>
/// <param name="slice">The current data slice</param>
public void OnFrameworkData(Slice slice)
{
using (Py.GIL())
{
_algorithm.OnFrameworkData(slice);
}
}
public void OnFrameworkData(Slice slice) => _baseAlgorithm.OnFrameworkData(slice);
/// <summary>
/// Call this event at the end of the algorithm running.