hdrl.debug

HDRL Debug submodule This module provides the features to test PyCPL to PyHDRL custom type converters. It is not intended for use by pipeline developers.

class hdrl.debug.Types

A hdrl.debug.Types is a helper class to run tests for the custom type converters. The custom type caster handles the conversion dynamically.

It is not intended to be used by pipeline developers.

It is only intended for use by PyHDRL developers.

static image(image: cpl.core.Image) cpl.core.Image

Utility function to help test the custom type caster for cpl.core.Image type.

Parameters:

image (cpl.core.Image) – Image to be converted

Returns:

A newly allocated Image.

Return type:

cpl.core.Image

static imagelist(imagelist: cpl.core.ImageList) cpl.core.ImageList

Utility function to help test the custom type caster for cpl.core.ImageList type.

Parameters:

imagelist (cpl.core.ImageList) – ImageList to be converted

Returns:

A newly allocated ImageList.

Return type:

cpl.core.ImageList

static mask(m: cpl.core.Mask) cpl.core.Mask

Utility function to help test the custom type caster for cpl.core.Mask type.

Parameters:

m (cpl.core.Mask) – Mask to be converted

Returns:

A newly allocated mask.

Return type:

cpl.core.Mask

static propertylist(plist: cpl.core.PropertyList) cpl.core.PropertyList

Utility function to help test the custom type caster for cpl.core.PropertyList type.

Parameters:

plist (cpl.core.PropertyList) – PropertyList to be converted

Returns:

A newly allocated PropertyList.

Return type:

cpl.core.PropertyList

static table(tab: cpl.core.Table) cpl.core.Table

Utility function to help test the custom type caster for cpl.core.Table type.

Parameters:

tab (cpl.core.Table) – Table to be converted

Returns:

A newly allocated Table.

Return type:

cpl.core.Table

static vector(v: cpl.core.Vector) cpl.core.Vector

Utility function to help test the custom type caster for cpl.core.Vector type.

Parameters:

v (cpl.core.Vector) – Vector to be converted

Returns:

A newly allocated Vector.

Return type:

cpl.core.Vector

static wcs(w: cpl.drs.WCS) cpl.drs.WCS

Utility function to help test the custom type caster for cpl.drs.WCS type.

Parameters:

w (cpl.drs.WCS) – WCS to be converted

Returns:

A newly allocated WCS.

Return type:

cpl.drs.WCS