set global verbosity #136
Labels
cleanup/useability
Improvements to structure, etc.
proposal
A proposal, for discussion with the development team
src
Improvements or additions to the source code
As mentioned in #134, it would be nice to have a single means of setting the verbosity level of
WecOptTool
. For example, in general most minor warnings (BEM results needing minor correction, the creation of directories, etc.) will be silenced. If the user somehow increases the verbosity level (e.g.,WecOptTool.setVerbosity(1)
), the warnings will be displayed. This could also increase the level of plotting.This could be accomplished via method shown here: https://www.mathworks.com/help/matlab/matlab_prog/suppress-warnings.html#btmrdj8-4, where you can turn a warning with the ID
WecOptTool:MyWarning
off by callingwarning('off','WecOptTool:MyWarning')
. We could perhaps create a functionWecOptTool.setVerbosity
with something like the following:The text was updated successfully, but these errors were encountered: