JuliaQuantumControl / QuantumControl.jl

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

Set `atexit` in `@optimize_or_load` #36

Closed goerz closed 1 year ago

goerz commented 1 year ago

This integrates set_atexit_save_optimization with @optimize_or_load by passing atexit_filename to optimize. The optimize-method for the given method is assumed to use atexit_filename and manage the callback.

codecov[bot] commented 1 year ago

Codecov Report

Merging #36 (50c609d) into master (6e8f8b3) will decrease coverage by 0.09%. The diff coverage is 75.00%.

@@            Coverage Diff             @@
##           master      #36      +/-   ##
==========================================
- Coverage   75.59%   75.50%   -0.09%     
==========================================
  Files           5        5              
  Lines         295      298       +3     
==========================================
+ Hits          223      225       +2     
- Misses         72       73       +1     
Impacted Files Coverage Δ
src/workflows.jl 85.55% <75.00%> (-0.66%) :arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.