pep8 conversion of python algos #5 (#7943)

* pep8 conversion

* Fix: detect python object of python classes derived from c# classes

* Minor PEP8 updates/fixes

---------

Co-authored-by: Jhonathan Abreu <jdabreu25@gmail.com>
This commit is contained in:
Louis Szeto
2024-04-19 02:53:32 +08:00
committed by GitHub
parent 5eb236834f
commit c2ad893f32
28 changed files with 847 additions and 858 deletions
@@ -19,9 +19,9 @@ from CustomDataObjectStoreRegressionAlgorithm import *
### </summary>
class CustomDataZippedObjectStoreRegressionAlgorithm(CustomDataObjectStoreRegressionAlgorithm):
def GetCustomDataKey(self):
def get_custom_data_key(self):
return "CustomData/ExampleCustomData.zip"
def SaveDataToObjectStore(self):
self.ObjectStore.SaveBytes(self.GetCustomDataKey(), Compression.ZipBytes(bytes(self.CustomData, 'utf-8'), 'data'))
def save_data_to_object_store(self):
self.object_store.save_bytes(self.get_custom_data_key(), Compression.zip_bytes(bytes(self.custom_data, 'utf-8'), 'data'))