Add python syntax check (#8651)
API Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Syntax Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
API Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Syntax Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
* Add python syntax check * Fix some python regression algorithms * Fixing more bugs
This commit is contained in:
@@ -34,7 +34,7 @@ class OptionIndicatorsRegressionAlgorithm(QCAlgorithm):
|
||||
def on_end_of_algorithm(self):
|
||||
if self.implied_volatility.current.value == 0 or self.delta.current.value == 0 or self.gamma.current.value == 0 \
|
||||
or self.vega.current.value == 0 or self.theta.current.value == 0 or self.rho.current.value == 0:
|
||||
raise Exception("Expected IV/greeks calculated")
|
||||
raise AssertionError("Expected IV/greeks calculated")
|
||||
|
||||
self.debug(f"""Implied Volatility: {self.implied_volatility.current.value},
|
||||
Delta: {self.delta.current.value},
|
||||
|
||||
Reference in New Issue
Block a user