AttributeBlender

class jwst.model_blender.rules.AttributeBlender(blend_function)[source]

Bases: object

Single attribute metadata blender.

Create a new metadata attribute blender.

Parameters:

blend_function (callable) – Function to blend accumulated metadata values

Methods Summary

accumulate(value)

Add a metadata value for blending.

finalize()

Blend the accumulated metadata values.

Methods Documentation

accumulate(value)[source]

Add a metadata value for blending.

Parameters:

value (any) – Value for this metadata attribute to use when blending.

finalize()[source]

Blend the accumulated metadata values.

Returns:

The blended result.

Return type:

value