paths_cli.param_core.OPSStorageLoadSingle¶
-
class
paths_cli.param_core.
OPSStorageLoadSingle
(param, store, value_strategies=None, none_strategies=None)¶ Objects that expect to load a single object.
These can sometimes include guesswork to figure out which object is desired. The details of how that guesswork is performed is determined by the strategy lists that are given.
- param
AbstractParameter
the Option or Argument wrapping a click decorator
- storeStr
the name of the store to search
- value_strategiesList[Callable[(
Storage
, Str), Any]] The strategies to be used when the CLI provides a value for this parameter. Each should be a callable taking a storage and the string input from the CLI, and should return the desired object or None if it cannot be found.
- none_strategiesList[Callable[:class:`openpathsampling.Storage, Any]]
The strategies to be used when the CLI does not provide a value for this parameter. Each should be a callable taking a storage, and returning the desired object or None if it cannot be found.
-
__init__
(param, store, value_strategies=None, none_strategies=None)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(param, store[, value_strategies, …])Initialize self.
get
(storage, name)Load desired object from storage.
Attributes
clicked
Create the click decorator
- param