You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseException(f"Expected Symbols selected on {self.time.strftime('%Y%m%d')} to match expected Symbols, but the following Symbols were missing: {', '.join(list(map(lambdax:x.value, missing)))}")
87
+
raiseAssertionError(f"Expected Symbols selected on {self.time.strftime('%Y%m%d')} to match expected Symbols, but the following Symbols were missing: {', '.join(list(map(lambdax:x.value, missing)))}")
88
88
89
89
self.coarse_selected[self.time] =True
90
90
returnselected_symbols
91
91
92
92
defon_end_of_algorithm(self):
93
93
ifnotall(xforxinself.coarse_selected.values()):
94
-
raiseException(f"Expected coarse selection on all dates, but didn't run on: {', '.join(list(map(lambdax: x.key.strftime('%Y%m%d'), filter(lambdax:notx.value, self.coarse_selected))))}")
94
+
raiseAssertionError(f"Expected coarse selection on all dates, but didn't run on: {', '.join(list(map(lambdax: x.key.strftime('%Y%m%d'), filter(lambdax:notx.value, self.coarse_selected))))}")
if (abs(self.btc_usd_holdings.absolute_holdings_cost*0.05-self.margin_used) >1) or (BuyingPowerModelExtensions.get_maintenance_margin(self.btc_usd.buying_power_model, self.btc_usd) !=self.margin_used):
86
-
raiseException(f"Unexpected margin used {self.margin_used}")
86
+
raiseAssertionError(f"Unexpected margin used {self.margin_used}")
if (abs(self.ada_usdt_holdings.absolute_holdings_cost*0.05-self.margin_used) >1) or (BuyingPowerModelExtensions.get_maintenance_margin(self.ada_usdt.buying_power_model, self.ada_usdt) !=self.margin_used):
103
-
raiseException(f"Unexpected margin used {self.margin_used}")
103
+
raiseAssertionError(f"Unexpected margin used {self.margin_used}")
if (abs(self.ada_usdt_holdings.absolute_holdings_cost*0.05-self.margin_used) >1) or (BuyingPowerModelExtensions.get_maintenance_margin(self.ada_usdt.buying_power_model, self.ada_usdt) !=self.margin_used):
85
-
raiseException(f"Unexpected margin used {self.margin_used}")
85
+
raiseAssertionError(f"Unexpected margin used {self.margin_used}")
0 commit comments