-
Notifications
You must be signed in to change notification settings - Fork 10
Allow printing of output files to be suppressed and terminal output #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
I will make a few more changes to this PR to address #17 . To avoid adding more options |
…output, while print file => "" prints to the terminal"
|
The default value of printfile is |
|
@ajshephard I tried this, but the behavior appears to only occur once per REPL instance. For example, if I try to run the optimization call a second time, but within the same REPL instance, then the terminal output disappears again. |
|
@martinozimek I can not reproduce this. If I run the following (based on code in Then I get the same print output for both first and second call. Note that |
|
AJ are you able to merge your changes into a branch we can pull? I tried to grab yours manually but maybe missed some changes resulting in the one print per terminal error. |
I'm not able to merge this. I think @andrewning can if he is happy with changes. |
|
Since we seem to be having conflicting behavior probably would be best if we had some additional testing before pulling into the main branch. But note that there is already a branch you can pull from though to test these changes, the branch the pull request is coming from: https://github.com/ajshephard/Snopt.jl/tree/disable_printing |
|
You all probably know this, but to view progress in realtime I use tail (e.g., tail -f filename). I prefer that over the repl anyway as I can check in on progress in real time (then close it when I don't want to keep monitoring the whole time), and that history is saved so I can compare different runs. Anyway, just an option. |
|
I can't reproduce this issue. Can you add the following to the end of the test file, and let me know the output each time you run this?
|
This allows the print and/or summary file output to be suppressed whenever
Print fileandSummary fileare set to empty strings. E.g.options = Dict("Print file" => "", "Summary file" => "").