src.utils.ptransf.sampling_decorator_utils

Classes

SamplingDecoratorUtils()

class src.utils.ptransf.sampling_decorator_utils.SamplingDecoratorUtils
Author:

Alberto M. Esmoris Pena

Class with util static method to work with point sampling decorators.

static validate_decorator_spec(obj, decorated_spec, decorator_spec)

Validate the given decorator specification (including its associated decorated object specification) is correct for the general case.

Parameters:
  • obj – The decorator object.

  • decorated_spec – The specification governing the decorated object.

  • decorator_spec – The decorator’s specification.

Returns:

Nothing, but a VL3DException will be raised if something not valid is found.

static warn_if_problematic_encoding(obj, decorator_spec)

Log a warning if a not recommended encoding configuration is found.

Parameters:
  • obj – The decorator object.

  • decorator_spec – The decorator’s specification.

Returns:

Nothing, but a warning will be emitted through the logging system if something problematic is detected.