Closed flongford closed 4 years ago
Merging #335 into master will increase coverage by
0.00%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #335 +/- ##
=======================================
Coverage 98.40% 98.40%
=======================================
Files 60 60
Lines 1693 1694 +1
Branches 172 172
=======================================
+ Hits 1666 1667 +1
Misses 23 23
Partials 4 4
Impacted Files | Coverage Δ | |
---|---|---|
force_bdss/app/evaluate_operation.py | 100.00% <100.00%> (ø) |
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 0e249a4...7eb1963. Read the comment docs.
This PR closes #333
It refactors part of the
EvaluateOperation.run
method into a newEvaluateOperation.create_mco_communicator
method, which is called before any listeners are set up.Additionally, we remove the
_deliver_start_event
and_deliver_finish_event
methods from being called, since these should signify the beginning and end of an optimization procedure (handled by theOptimizerOperation
), rather than a single point evaluation.Note:
Any
Exception
s raised during the instantiation will now be propagated through to theBDSSApplication.run
method, rather than returningFalse
. The only reasoning behind the previous design I can see is to avoid any uncontrolled crashes of theforce_bdss
program in the event of a failure. However, since therun
method is already executed in a try block, any exceptions will be handled accordingly by above.