Closed schroedk closed 3 months ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Attention: Patch coverage is 94.16283%
with 38 lines
in your changes missing coverage. Please review.
Files with missing lines | Coverage Δ | |
---|---|---|
src/estimagic/estimate_ml.py | 82.47% <ø> (ø) |
|
src/estimagic/estimate_msm.py | 89.68% <ø> (ø) |
|
src/optimagic/__init__.py | 100.00% <100.00%> (+8.33%) |
:arrow_up: |
src/optimagic/deprecations.py | 100.00% <100.00%> (ø) |
|
src/optimagic/logging/__init__.py | 100.00% <100.00%> (ø) |
|
src/optimagic/logging/read_log.py | 100.00% <100.00%> (+4.27%) |
:arrow_up: |
src/optimagic/logging/types.py | 100.00% <100.00%> (ø) |
|
src/optimagic/optimization/get_algorithm.py | 93.04% <100.00%> (-0.06%) |
:arrow_down: |
...imagic/optimization/internal_criterion_template.py | 82.60% <100.00%> (ø) |
|
src/optimagic/optimization/optimization_logging.py | 100.00% <100.00%> (ø) |
|
... and 10 more |
I am through now. Thanks a lot for this PR!
One thing that is left to do is adding a
logger
field to theOptimizeResult
.
Done
The proposed logging is described here.
This refactoring introduces the following abstractions:
LogOptions
(implementationSQLiteLogOptions
), configurationLogStore
(implementation_SQLiteLogStore
, not exposed), write accessLogReader
(implementationSQLiteLogReader
), read accessThe old class
OptimizationLogReader
redirects toSQLiteLogReader
in a backward-compatible way.