landlab.framework.component

Utility functions for loading components for The Landlab.

iscomponent(value, cls)[source]

Check if value is a component for The Landlab. value is a component if it implements the cls or it is an instance of cls.

Returns True if value is a component, otherwise False.

load_components(cls, paths=None)[source]

Load components from a series of directories.

Components found earlier in the search path order override those discovered later. Use the paths keyword to specify a list of paths to search for components.

load_components_from_dir(path, cls)[source]

Look for components for Landlab in path.

Identify components as being an instance of cls. Returns a dictionary of discovered component names as keys and component classes as values.

load_landlab_components(paths=None)[source]

Load components for The Landlab. These are classes that implement BmiBase. See load_components_from_dir for the meaning of paths keyword.