As discussed here #25 (comment) there are various issues with using the options module for handling settings in hypnotoad:
@dschwoerer
- I just wanted to mention that options pulls in additional dependencies. As options doesn't even seem to have a public bug tracker (same is true for some dependencies) I do worry about pulling that in ...
options allows getting options simply as e.g. self.options.orthogonal, but "that is only a few lines [to implement], I [@dschwoerer] did that to drop the dependency on Bunch."
@ZedThree
- not being able to
deepcopy
- removing keys from the passed-in object
- To make the options form in the gui more useful, I think we would want to add some additional features to the options class at any rate:
- keeping track of documentation
- expected type of values, allowed values. For example, make refine_method into a drop-down list of the available methods.
A replacement Options class would be welcome. Maybe a possibility for something shared with xBOUT boutproject/xBOUT#94 boutproject/xBOUT#97?
As discussed here #25 (comment) there are various issues with using the
optionsmodule for handling settings inhypnotoad:@dschwoerer
optionsallows getting options simply as e.g.self.options.orthogonal, but "that is only a few lines [to implement], I [@dschwoerer] did that to drop the dependency on Bunch."@ZedThree
deepcopyA replacement
Optionsclass would be welcome. Maybe a possibility for something shared withxBOUTboutproject/xBOUT#94 boutproject/xBOUT#97?