Adds PythonSlice static constructor

With this constructor, SetConverter method, that was not respecting Lean pattern, is removed. The initialization of _converter field is done once the type is loaded.
This commit is contained in:
AlexCatarino
2018-02-12 16:23:23 +00:00
parent 64a9929fa6
commit 9dfc8ee3a0
2 changed files with 23 additions and 31 deletions
@@ -63,9 +63,6 @@ namespace QuantConnect.AlgorithmFactory.Python.Wrappers
var baseClass = module.GetAttr("QCAlgorithm");
// Set PythonSlice converter
PythonSlice.SetConverter();
var moduleName = module.Repr().Split('\'')[1];
foreach (var name in module.Dir())