Skip to content

Options class replacement #27

@johnomotani

Description

@johnomotani

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions