omf_io.utils.decorators.requires_dependency

omf_io.utils.decorators.requires_dependency(library_name, library)[source]

A decorator to check if an optional library is installed.

Parameters:
  • library_name (str) – The name of the library (for error messages).

  • library (object) – The library object (e.g., gpd or Point).

Returns:

The wrapped function.

Return type:

Callable