UserOptions#

module wntr.network.options

class UserOptions[source]#

Bases: _OptionsBase

Options defined by the user.

Provides an empty class that accepts getattribute and setattribute methods to create user-defined options. For example, if using WNTR for uncertainty quantification, certain options could be added here that would never be used directly by WNTR, but which would be saved on pickling and could be used by the user-built analysis scripts.


__init__(**kwargs)[source]#
classmethod factory(val)#

Create an options object based on passing in an instance of the object, a dict, or a tuple