AttributeBlender

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

Bases: object

Single attribute metadata blender.

Create a new metadata attribute blender.

Parameters:
blend_functioncallable

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:
valueany

Value for this metadata attribute to use when blending.

finalize()[source]

Blend the accumulated metadata values.

Returns:
value

The blended result.