For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
OverviewCodaControlAPI ReferenceChangelog
OverviewCodaControlAPI ReferenceChangelog
  • Coda API
  • Control API
  • Stanza API
    • stanza
    • cli
    • context
    • device
    • exceptions
      • logger
      • data_logger
      • datatypes
      • session
    • models
    • pyvisa
    • registry
    • timing
    • utils
LogoLogo
On this page
  • Module Contents
  • Classes
  • API
Stanza APIlogger

stanza.logger.datatypes

Was this page helpful?
Built with

Module Contents

Classes

NameDescription
MeasurementDataRepresents a single measurement point.
SweepDataRepresents a sweep of measurement data.
SessionMetadataSession-level metadata.

API

1class stanza.logger.datatypes.MeasurementData

Represents a single measurement point.

1name: str

Value: None

1data: dict[str, typing.Any]

Value: None

1metadata: dict[str, typing.Any]

Value: None

1timestamp: float

Value: None

1session_id: str

Value: None

1routine_name: str | None

Value: None

1to_dict() -> dict[str, typing.Any]

Convert to dictionary for serialization.

1class stanza.logger.datatypes.SweepData

Represents a sweep of measurement data.

Supports both 1D and 2D sweeps:

  • 1D: x_data.shape = (N,), y_data.shape = (N,)
  • 2D: x_data.shape = (N, 2), y_data.shape = (N,)
1name: str

Value: None

1x_data: numpy.ndarray

Value: None

1y_data: numpy.ndarray

Value: None

1x_label: str | list[str]

Value: None

1y_label: str

Value: None

1metadata: dict[str, typing.Any]

Value: None

1timestamp: float

Value: None

1session_id: str

Value: None

1routine_name: str | None

Value: None

1__post_init__() -> None

Validate sweep data dimensions.

1to_dict() -> dict[str, typing.Any]

Convert to dictionary for serialization.

1class stanza.logger.datatypes.SessionMetadata

Session-level metadata.

1session_id: str

Value: None

1start_time: float

Value: None

1user: str

Value: None

1routine_name: str | None

Value: None

1group_name: str | None

Value: None

1device_config: dict[str, typing.Any] | None

Value: None

1parameters: dict[str, typing.Any] | None

Value: None

1end_time: float | None

Value: None

1git_commit: str | None

Value: None

1duration: float | None

Session duration in seconds.

1to_dict() -> dict[str, typing.Any]

Convert to dictionary for serialization.