20 using System.Collections.Generic;
35 public override string Name
42 if (_model.HasAttr(nameof(
Name)))
44 return _model.GetProperty<
string>(nameof(
Name));
48 return _model.GetProperty(
" __class__" ).GetAttr(
"__name__").GetAndDispose<
string>();
60 foreach (var attributeName
in new[] {
"Update",
"OnSecuritiesChanged" })
62 if (!_model.HasAttr(attributeName))
64 throw new NotImplementedException($
"IAlphaModel.{attributeName} must be implemented. Please implement this missing method on {model.GetPythonType()}");
80 var insights = _model.InvokeMethod(nameof(
Update), algorithm,
new PythonSlice(data));
81 var iterator = insights.GetIterator();
82 foreach (PyObject insight
in iterator)
84 yield
return insight.GetAndDispose<
Insight>();