Closed flongford closed 4 years ago
:exclamation: No coverage uploaded for pull request base (
master@c9a39e2
). Click here to learn what that means. The diff coverage is100%
.
@@ Coverage Diff @@
## master #269 +/- ##
=========================================
Coverage ? 96.95%
=========================================
Files ? 54
Lines ? 1511
Branches ? 144
=========================================
Hits ? 1465
Misses ? 42
Partials ? 4
Impacted Files | Coverage Δ | |
---|---|---|
force_bdss/core/execution_layer.py | 100% <ø> (ø) |
|
force_bdss/mco/base_mco_model.py | 100% <100%> (ø) |
|
force_bdss/core/workflow.py | 100% <100%> (ø) |
|
force_bdss/app/optimize_operation.py | 100% <100%> (ø) |
|
force_bdss/mco/base_mco.py | 100% <100%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update c9a39e2...36f3539. Read the comment docs.
This PR approaches #247 and closes #239
Summary
Instead of just listening to
BaseDriverEvent
types propagated throughBaseMCO
subclasses, theOptimizationOperation
now also listens to events propagated through theWorkflow
class. In doing so, we include newevent
attributes andnotify
methods on theBaseModel
,ExecutionLayer
Workflow
classes.We aim to remove the ability for events to propagate through the
BaseMCO
class in the future, but to ensure backwards compatibility for now, a deprecation warnings is raised if theBaseMCO.verify
method is called.This PR also includes refactoring to the broadcasting of
MCO*Event
classes, introduced in #270