Parameterized#
Parameterized#
A base class for creating Parameterized objects. |
|
Base class for user-defined |
.param namespace#
These methods and properties are available under the .param namespace
of Parameterized classes and instances.
|
Object that holds the |
|
Retrieve a |
|
Return the list of standard attributes and parameters. |
|
Iterate over the parameters on this object. |
|
|
|
Handle attribute access for |
|
Add a new |
|
Deserialize the given serialized data. |
|
Deserialize the value of a specific parameter. |
|
Force a new value to be generated for the dynamic attribute name, and return it. |
|
Retrieve the value or value-generating object of a named parameter. |
|
Inspect the current value of a parameter without modifying it. |
|
Log a message at the specified logging level. |
|
Retrieve the parameter dependencies of a specified method. |
|
Return the Parameters of this instance or class. |
|
Retrieve a mapping of declared outputs for the Parameterized object. |
|
Generate a pretty-printed representation of the object. |
|
Generate a schema for the parameters on this |
|
Set |
|
Return the serialized parameters of the |
|
Serialize the value of a specific parameter. |
|
Trigger watchers for the given set of parameter names. |
|
Remove a watcher from this object's list of registered watchers. |
|
Update multiple parameters of this object or class before triggering events. |
|
Retrieve a dictionary of parameter names and their current values. |
|
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments. |
|
Register a callback function to be invoked for parameter events. |
|
Register a callback function for changes in parameter values. |
Dictionary of instance watchers. |
ParameterizedFunction#
|
Acts like a Python function, but with arguments that are Parameters. |
|
Create and return an instance of this class. |
|
A dictionary-like object that provides two-level lookup for parameter values. |
Retrieve extra keyword arguments not matching the overridden object's parameters. |
|
Retrieve parameters matching the overridden object's declared parameters. |
|
|
Retrieve the value for a given key, with a default if the key is not found. |
Helpers#
|
Context manager to batch events to provide to |
|
Return a list of the class hierarchy above (and including) the given class. |
|
Return a dictionary containing all subclasses of the specified parentclass, including the parentclass (prefer |
|
Annotates a function or |
|
Return a list of all descendent classes of a given class. |
|
Context manager that discards any events within its scope triggered on the supplied Parameterized object. |
|
Context manager to temporarily set parameters on a Parameterized object to |
|
Annotate a method to declare its outputs with specific types. |
Append a transform to extract potential parameter dependencies from an object. |
|
|
Resolve all parameters a dynamic reference depends on. |
|
Resolve the current value of a dynamic reference. |
|
Generate a nearly runnable Python script representation of a Parameterized object. |
Module variables#
Returns True when the argument is true, False otherwise. |