Skip to content

Trace#

Types from the trace area of the protocol that appear in API signatures and attributes.

AxisRole #

What this axis represents physically. Decoupled from DimensionType (which is about the unit system).

UNSPECIFIED class-attribute instance-attribute #

UNSPECIFIED = 0

SPECTRAL class-attribute instance-attribute #

SPECTRAL = 1

Spectral frequency axis (1H, 13C ppm/Hz)

TEMPORAL class-attribute instance-attribute #

TEMPORAL = 2

Time-domain acquisition axis (FID)

PARAMETER class-attribute instance-attribute #

PARAMETER = 3

Experiment parameter axis (CPMG ν, T1 delay τ, gradient G)

INDIRECT class-attribute instance-attribute #

INDIRECT = 4

Indirect evolution dimension (t1 in 2D)

betterproto_value_to_renamed_proto_names classmethod #

betterproto_value_to_renamed_proto_names() -> dict[
    int, str
]

betterproto_renamed_proto_names_to_value classmethod #

betterproto_renamed_proto_names_to_value() -> dict[
    str, int
]

PipelineExecution #

What a processing pipeline run computed from what: the execution record of one result. The entry carrying it holds when and by whom.

graph_sha256 class-attribute instance-attribute #

graph_sha256: str

SHA-256 hex of canonical_graph.

canonical_graph class-attribute instance-attribute #

canonical_graph: str

The graph's canonical topology: node types, parameters and edges by role, as JSON. Layout, node ids and port order are not part of it.

pipeline_name class-attribute instance-attribute #

pipeline_name: str

The pipeline's name when it had one.

input_scan_id class-attribute instance-attribute #

input_scan_id: str

The scan the run read; for an acquisition, the acquired scan itself.

input_content_digest class-attribute instance-attribute #

input_content_digest: str

Review data-binding digest of the input scan as the run read it.

output_content_digest class-attribute instance-attribute #

output_content_digest: str

Review data-binding digest of the scan the result was stored as, before this record and the scan's pipeline snapshot were attached.

output_node_id class-attribute instance-attribute #

output_node_id: str

The node and output port whose value is the result, ids as in the scan's pipeline snapshot.

output_port class-attribute instance-attribute #

output_port: str

additional_input_scan_ids class-attribute instance-attribute #

additional_input_scan_ids: list[str]

Further stored scans the run read (a graph with Scan Spectrum nodes), and the review data-binding digest of each as the run read it; the lists are parallel.

additional_input_content_digests class-attribute instance-attribute #

additional_input_content_digests: list[str]

ProcessingHistory #

Complete processing history for a signal/spectrum

entries class-attribute instance-attribute #

ProcessingHistoryEntry #

Single processing operation record

operation class-attribute instance-attribute #

operation: str

Operation name (e.g., "correct_phase_manual", "numpy.multiply")

parameters class-attribute instance-attribute #

parameters: dict[str, str]

Operation parameters as string key-value pairs

timestamp class-attribute instance-attribute #

timestamp: datetime | None

When the operation was performed

shape_before class-attribute instance-attribute #

shape_before: list[int]

Shape info (optional, may be empty for direct numpy ops)

shape_after class-attribute instance-attribute #

shape_after: list[int]

source class-attribute instance-attribute #

source: str

Source of the operation Values: "tqt_nmr", "nuclei_preprocessing", "nuclei_postprocessing", "numpy"

username class-attribute instance-attribute #

username: str

User who performed the operation

hostname class-attribute instance-attribute #

hostname: str

Machine where operation was performed

pipeline_execution class-attribute instance-attribute #

pipeline_execution: PipelineExecution | None

Set on the entry a processing pipeline run writes (source "nuclei_postprocessing").

Signal1D #

metadata class-attribute instance-attribute #

metadata: dict[str, str]

Optional metadata

reference_frequency_hz class-attribute instance-attribute #

reference_frequency_hz: float | None

Reference frequency for PPM conversion (Hz) - propagated to spectrum on FFT

carrier_offset_hz class-attribute instance-attribute #

carrier_offset_hz: float | None

Carrier offset in Hz - applied to spectrum frequencies during FFT This is the offset from base frequency where the carrier was set during acquisition

processing_history class-attribute instance-attribute #

processing_history: ProcessingHistory | None

Processing history - read-only audit log of all operations applied to this signal

Signal2D #

metadata class-attribute instance-attribute #

metadata: dict[str, str]

Optional metadata

reference_frequency_hz class-attribute instance-attribute #

reference_frequency_hz: float | None

Reference frequency for PPM conversion (Hz) - propagated to spectrum on FFT

carrier_offset_hz_1 class-attribute instance-attribute #

carrier_offset_hz_1: float | None

Carrier offsets in Hz - applied to spectrum frequencies during FFT These are the offsets from base frequency where the carriers were set

For F1 (indirect dimension)

carrier_offset_hz_2 class-attribute instance-attribute #

carrier_offset_hz_2: float | None

For F2 (direct dimension)

reference_signal_f1 class-attribute instance-attribute #

reference_signal_f1: Signal1D | None

Reference acquisitions for 2D NMR deconvolution F1 reference: 1D acquisition along indirect dimension

reference_signal_f2 class-attribute instance-attribute #

reference_signal_f2: Signal1D | None

F2 reference: 1D acquisition along direct dimension

processing_history class-attribute instance-attribute #

processing_history: ProcessingHistory | None

Processing history - read-only audit log of all operations applied to this signal

SignalNd #

Oneofs
  • impl:

s1d class-attribute instance-attribute #

s1d: Signal1D | None

s2d class-attribute instance-attribute #

s2d: Signal2D | None

visualization_handler class-attribute instance-attribute #

visualization_handler: str

Plugin visualization handler ID (e.g., "nanalysis:cosy_2d") Used by both frontend and backend to select appropriate visualizer

check_oneof #

check_oneof(values)

Spectrum1D #

metadata class-attribute instance-attribute #

metadata: dict[str, str]

Optional metadata

solvent_reference_ppm class-attribute instance-attribute #

solvent_reference_ppm: float | None

Solvent reference PPM for calibration (set from sample's solvent info)

processing_history class-attribute instance-attribute #

processing_history: ProcessingHistory | None

Processing history - read-only audit log of all operations applied to this spectrum

Spectrum2D #

metadata class-attribute instance-attribute #

metadata: dict[str, str]

Optional metadata

reference_spectrum_f1 class-attribute instance-attribute #

reference_spectrum_f1: Spectrum1D | None

Reference spectra for 2D NMR deconvolution F1 reference: 1D spectrum along indirect dimension

reference_spectrum_f2 class-attribute instance-attribute #

reference_spectrum_f2: Spectrum1D | None

F2 reference: 1D spectrum along direct dimension

processing_history class-attribute instance-attribute #

processing_history: ProcessingHistory | None

Processing history - read-only audit log of all operations applied to this spectrum

SpectrumNd #

Oneofs
  • impl:

s1d class-attribute instance-attribute #

s1d: Spectrum1D | None

s2d class-attribute instance-attribute #

s2d: Spectrum2D | None

visualization_handler class-attribute instance-attribute #

visualization_handler: str

Plugin visualization handler ID (e.g., "nanalysis:cosy_2d") Used by both frontend and backend to select appropriate visualizer

check_oneof #

check_oneof(values)