JuliaQuantumControl / QuantumControl.jl

Julia Framework for Quantum Dynamics and Control
https://juliaquantumcontrol.github.io/QuantumControl.jl/
MIT License
47 stars 6 forks source link

Capture output in `@optimize_or_load` #55

Closed goerz closed 6 months ago

goerz commented 6 months ago

Running @optimize_or_load now captures the output from the underlying call to optimize and stores it in the .jld2 file alongside the result. In a subsequent call to @optimize_or_load, print the captured output. The captured output is limited to 2kB. If optimize produces more output than that, the first and last kB ouf output are captured.

Added a logfile option to @optimize_or_load for situations where the output is larger than 2kB but should be fully preserved.

codecov[bot] commented 6 months ago

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (d4b4684) 55.9% compared to head (38dacfc) 61.8%.

Files Patch % Lines
src/workflows.jl 95.1% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #55 +/- ## ======================================== + Coverage 55.9% 61.8% +5.9% ======================================== Files 6 6 Lines 342 397 +55 ======================================== + Hits 191 245 +54 - Misses 151 152 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.