pep8 conversion of python algos #1-25 (#7926)

* pep8 conversion of python algos

* address peer-review

* PEP8 updates/fixes

* More fixes

---------

Co-authored-by: Jhonathan Abreu <jdabreu25@gmail.com>
This commit is contained in:
Louis Szeto
2024-04-18 05:02:32 +08:00
committed by GitHub
parent 784e497691
commit ed7f3ebbbf
35 changed files with 735 additions and 727 deletions
@@ -20,11 +20,11 @@ from Alphas.MacdAlphaModel import MacdAlphaModel
### </summary>
class MacdAlphaModelFrameworkRegressionAlgorithm(BaseFrameworkRegressionAlgorithm):
def Initialize(self):
super().Initialize()
self.SetAlpha(MacdAlphaModel())
def initialize(self):
super().initialize()
self.set_alpha(MacdAlphaModel())
def OnEndOfAlgorithm(self):
def ond_end_of_algorithm(self):
expected = 4
if self.Insights.TotalCount != expected:
raise Exception(f"The total number of insights should be {expected}. Actual: {self.Insights.TotalCount}")
if self.insights.total_count != expected:
raise Exception(f"The total number of insights should be {expected}. Actual: {self.insights.total_count}")