Skip to content

Conversation

@goerz
Copy link
Member

@goerz goerz commented Jan 17, 2024

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.

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.
@goerz goerz added the enhancement New feature or request label Jan 17, 2024
@codecov
Copy link

codecov bot commented Jan 17, 2024

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 ⚠️
Additional details and impacted files
@@           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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@goerz goerz merged commit 38dacfc into master Jan 17, 2024
@goerz goerz deleted the capture-output branch January 17, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants