mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-28 12:51:29 +08:00
MAINT: Use a for loop for main algorithm run loop instead of list
So that stepping through a debugger is a little easier, with respect to having easy access to the algorithm object, and seeing which step in `self.gen` the interpreter is currently at.
This commit is contained in:
1 parent
aa54d0ae0e
commit
91e5abbc44
1 file changed
+3
-1
@@ -298,7 +298,9 @@ class TradingAlgorithm(object):
|
||||
|
||||
# loop through simulated_trading, each iteration returns a
|
||||
# perf dictionary
|
||||
perfs = list(self.gen)
|
||||
perfs = []
|
||||
for perf in self.gen:
|
||||
perfs.append(perf)
|
||||
|
||||
# convert perf dict to pandas dataframe
|
||||
daily_stats = self._create_daily_stats(perfs)
|
||||
|
||||
Reference in new issue
Block a user