Registry Module

The registry module provides a registry system for managing communication modes and performance data.

exception spacelink.phy.registry.DuplicateRegistryEntryError[source]

Bases: Exception

Raised when duplicate entries are found during registry loading.

class spacelink.phy.registry.Registry[source]

Bases: object

Registry of link modes and their performance.

__init__()[source]

Create an empty registry.

load(mode_dir=PosixPath('/home/runner/work/spacelink/spacelink/src/spacelink/phy/data/modes'), perf_dir=PosixPath('/home/runner/work/spacelink/spacelink/src/spacelink/phy/data/perf'))[source]

Load link modes and performance data from files.

Parameters:
  • mode_dir (Path) – Path to the directory containing the link mode files.

  • perf_dir (Path) – Path to the directory containing the performance data.

Raises:

DuplicateRegistryEntryError – If duplicate entries are found during loading.

Return type:

None

get_performance(mode_id, metric)[source]

Look up the performance object for a given mode and metric.

Parameters:
  • mode_id (str) – ID of the link mode.

  • metric (ErrorMetric) – Error metric.

Returns:

Performance object.

Return type:

ModePerformance