pyoptsparse
pyoptsparse copied to clipboard
Improve temp file usage in History class
Description
In the pyOpt_optimizer class, we currently use tempfile.mktemp() which is deprecated. We should instead use the existing temp file capabilities of the sqlitedict package.
This fix would involve both the pyOpt_optimizer and History classes, and the temp option should be handled inside the history class instead of delegating the tempfile stuff to the user.