uvex_transients.surveys.footprints.base.SurveyFootprint.register#

SurveyFootprint.register(registry: FootprintRegistry | None = None, overwrite: bool = False) → SurveyFootprint[source]#

Add this footprint to a registry.

Construction already registers in default_registry; call this to add it to another registry or to replace an existing entry.

Parameters:
  • registry (FootprintRegistry, optional) – Target registry. Default default_registry.

  • overwrite (bool, optional) – Replace an existing entry of the same name instead of raising. Default False.

Returns:

This footprint, for chaining.

Return type:

SurveyFootprint

Raises:

KeyError – If the name is already registered and overwrite is False.