eradiate.contexts.KernelDictContext#

class eradiate.contexts.KernelDictContext(spectral_ctx=_Nothing.NOTHING, kwargs=_Nothing.NOTHING)[source]#

Bases: Context

Kernel dictionary evaluation context data structure. This class is used e.g. to store information about the spectral configuration to apply when generating kernel dictionaries associated with a SceneElement instance.

Parameters:
  • spectral_ctx (SpectralContext or dict, default: SpectralContext.new()) – Spectral context (used to evaluate quantities with any degree or kind of dependency vs spectrally varying quantities).

  • kwargs (dict, default: {}) – Object-specific parameter overrides.

Fields:
  • spectral_ctx (SpectralContext) – Spectral context (used to evaluate quantities with any degree or kind of dependency vs spectrally varying quantities).

  • kwargs (dict) – Object-specific parameter overrides.

evolve(**changes)#

Create a copy of self with changes applied.

Parameters:

**changes – Keyword changes in the new copy.

Returns:

<same type as self> – A copy of self with changes incorporated.