iwopy.utils

Utilities and little helpers.

class iwopy.utils.RegularDiscretizationGrid[source]

A lightweight regular grid in n dimensions, without points storage.

iwopy.utils.suppress_stdout(silent=True)[source]

Surpresses print outputs

iwopy.utils.import_module(name, package=None, hint=None)[source]

Imports a module dynamically.

iwopy.utils.all_subclasses(cls)[source]

Searches all classes derived from some base class.

iwopy.utils.new_cls(base_cls, cls_name)[source]

Run-time class selector.

iwopy.utils.new_instance(base_cls, cls_name, *args, **kwargs)[source]

Run-time factory.