yieldplotlib.core.single_inputs#

The base SingleInput class.

SingleInput is a class designed to facilitate the reading, setting, and manipulation of various types of yield inputs. It inherits from dict for direct access to built-in dictionary functions such as get(), update(), etc.

Classes#

SingleInput

Base class for all Inputs.

Module Contents#

class yieldplotlib.core.single_inputs.SingleInput(*args, **kwargs)[source]#

Bases: dict

Base class for all Inputs.

apply(key, func)[source]#

Apply a function to all values of a given key.

check_units(key, desired_unit)[source]#

Checks that all values of key have the appropriate desired unit.