Scan#
Types from the scan area of the protocol that appear in API signatures and attributes.
Scan
#
Oneofs
- data:
experiment_type
class-attribute
instance-attribute
#
experiment_type: ExperimentType
Experiment type (auto-detected from pulse program during import)
integration_regions
class-attribute
instance-attribute
#
integration_regions: list[IntegrationRegion]
Integration regions defined on this scan
molecule_overlay
class-attribute
instance-attribute
#
molecule_overlay: MoleculeOverlay | None
Persistent placement of the molecule structure overlaid on this scan's plot.
origin
class-attribute
instance-attribute
#
origin: ScanOrigin | None
Set when the scan arrived in a .nuclei file rather than from an instrument or vendor import.
timestamp_offset_unknown
class-attribute
instance-attribute
#
The file recorded a local wall-clock time without its UTC offset. timestamp then holds
that wall-clock reading as if it were UTC: display it in UTC and say the offset is unknown.
data_summary
class-attribute
instance-attribute
#
data_summary: ScanDataSummary | None
What the stored spectrum is, kept on the light record so a scan is classified without loading it. Unset for a scan stored before this existed, or one storing only a signal.
preprocessing_override
class-attribute
instance-attribute
#
Overrides the project settings sub-message by sub-message: a set one replaces the project's, an unset one inherits it.
plot_annotations
class-attribute
instance-attribute
#
plot_annotations: PlotAnnotations | None
Spectrum artwork; existing annotations stay on the spectrum.
signal_plot_annotations
class-attribute
instance-attribute
#
signal_plot_annotations: PlotAnnotations | None
processing_pipeline
class-attribute
instance-attribute
#
The processing pipeline whose output is this scan's processed data, as it was run. Unset when standard preprocessing processes the scan. Reprocessing uses it in place of the preprocessing settings.
peak_label_style
class-attribute
instance-attribute
#
Peak label format for this scan; each field set replaces the project default.
reference
class-attribute
instance-attribute
#
Marked as a reference: the personal spectral index searches it by default.
DiffusionData
#
PFG diffusion (DOSY) acquisition parameters. delta/Delta/gamma are kept because the b-values written onto the indirect axis cannot be recomputed without them.
experiment_type
class-attribute
instance-attribute
#
Experiment type: "DOSY", "STE", "LED", ...
b_values
class-attribute
instance-attribute
#
b_values: list[float]
Stejskal-Tanner diffusion weighting per increment, s/m^2
gradient_strengths
class-attribute
instance-attribute
#
gradient_strengths: list[float]
Raw gradient amplitudes as acquired, G/cm
gamma_rad_s_t
class-attribute
instance-attribute
#
Gyromagnetic ratio used for the b-value calculation, rad/s/T
temperature_k
class-attribute
instance-attribute
#
Sample temperature, Kelvin; 0 when the acquisition recorded none.
solvent
class-attribute
instance-attribute
#
Solvent name as recorded, for the viscosity lookup.
ExperimentType
#
Type of NMR experiment. Best-effort auto-detected from pulse program name during import, or set manually. UNSPECIFIED is a valid default for unknown experiments.
EXPERIMENT_DEPT
class-attribute
instance-attribute
#
Multiplicity-edited 1D carbon: CH and CH3 up, CH2 down.
EXPERIMENT_DEPT_135
class-attribute
instance-attribute
#
DEPT-135 specifically: CH and CH3 up, CH2 down. Kept distinct because its mixed polarity requires polarity-preserving phase/window processing.
EXPERIMENT_APT
class-attribute
instance-attribute
#
Attached proton test (J-modulated spin echo): C and CH2 one way, CH and CH3 the other, so its lines are phased absorptive and never turned upright.
EXPERIMENT_HETCOR
class-attribute
instance-attribute
#
Carbon-detected heteronuclear correlation: the direct axis is 13C, not 1H.
EXPERIMENT_T1_IR
class-attribute
instance-attribute
#
Relaxation
Inversion recovery T1
EXPERIMENT_DOSY
class-attribute
instance-attribute
#
Other
Diffusion ordered spectroscopy
EXPERIMENT_KINETICS
class-attribute
instance-attribute
#
Arrayed 1D spectra against time (reaction monitoring); F1 is the acquisition time.
MoleculeOverlay
#
Persistent placement of the molecule structure overlaid on a scan's plot. Coordinates are fractions of the PLOT AREA (0..1), so the placement is resolution-independent and renders identically on the live plot and in reports.
size
class-attribute
instance-attribute
#
overlay box edge length, fraction of plot-area WIDTH
smiles
class-attribute
instance-attribute
#
SMILES cached here so the report renderer can draw the molecule without a PubChem round-trip. Source of truth for the molecule remains the sample's compound_formula; this mirrors the resolved value.
show_atom_numbers
class-attribute
instance-attribute
#
Draw each atom's display number (the project's atom numbering setting) beside it.
label_all_atoms
class-attribute
instance-attribute
#
Label every atom; otherwise only those that carry a hydrogen or an assignment.
PlotAnnotation
#
image_src
class-attribute
instance-attribute
#
Embedded raster image data URL; no paths or external resources.
inset
class-attribute
instance-attribute
#
inset: PlotInset | None
Set when kind is PLOT_ANNOTATION_INSET.
mol_block
class-attribute
instance-attribute
#
Set when kind is PLOT_ANNOTATION_STRUCTURE: the structure as an MDL mol block.
PlotAnnotationFrame
#
Reference axis window and CSS dimensions at authoring time. Geometry is kept in this frame, anchored to data and uniformly scaled with the horizontal axis.
PlotAnnotationKind
#
PLOT_ANNOTATION_HIGHLIGHT
class-attribute
instance-attribute
#
Translucent band; spans the full plot height when only x is data-anchored (1D).
PLOT_ANNOTATION_INSET
class-attribute
instance-attribute
#
The same traces over a narrower x window, drawn in a placement box; inset holds both.
PLOT_ANNOTATION_POLYGON
class-attribute
instance-attribute
#
Closed shape through points; fill shades it.
PLOT_ANNOTATION_STRUCTURE
class-attribute
instance-attribute
#
A drawn structure in the box a..b, from mol_block.
PlotAnnotationPoint
#
PlotAnnotations
#
User-authored artwork in plot-area fractions. Order is back-to-front.
PlotInset
#
A zoom inset: the source window in the annotation frame's x unit, and where the inset sits.
x_start
class-attribute
instance-attribute
#
Source x window, in the frame's x unit; either order.
y_start
class-attribute
instance-attribute
#
Manual y window; both unset autoscales to the traces inside the x window.
place_x
class-attribute
instance-attribute
#
Placement box in plot-area fractions, from the top left.
f1_start
class-attribute
instance-attribute
#
Source F1 window of a 2D plane inset, in the frame's y unit; either order. Both set or both unset; unset is a 1D inset.
RelaxometryData
#
Relaxometry experiment data for T1/T2/CPMG measurements Note: We only store metadata here. The actual 2D signal is stored in Scan2D.accumulated_signal and is re-processed on load to allow adjusting multi-group detection parameters (min_distance_ppm).
RelaxometryFit
#
A relaxation measurement: the decay of each group and the fit of all of them.
inputs
class-attribute
instance-attribute
#
Digest of everything it was measured from: the arrayed spectrum shown, the delays, the experiment type and the fit settings. A load whose inputs give another digest measures again.
groups
class-attribute
instance-attribute
#
groups: list[RelaxometryGroup]
The groups that were fitted, in group order.
result
class-attribute
instance-attribute
#
Every fitted component; each one's params name its group, window and R². No components: the fit failed for these inputs.
experiment_type
class-attribute
instance-attribute
#
The model fitted: "T1_IR", "T1", "T2_CPMG", ...
RelaxometryGroup
#
One spectral group of a relaxometry series: its window and its integral on every delay.
Scan1D
#
accumulated_signal
class-attribute
instance-attribute
#
Accumulated results (always present)
metadata
class-attribute
instance-attribute
#
Acquisition metadata
individual_scans
class-attribute
instance-attribute
#
individual_scans: list[Signal1D]
Individual scans (optional, may be stored separately for large datasets)
flagged_scan_indices
class-attribute
instance-attribute
#
flagged_scan_indices: list[int]
Quality control: indices of scans flagged as bad
signal_visualization_handler
class-attribute
instance-attribute
#
Visualization handler IDs for frontend rendering
spectrum_visualization_handler
class-attribute
instance-attribute
#
manual_peaks
class-attribute
instance-attribute
#
manual_peaks: list[PeakInfo]
DERIVED projection of the EDIT_KIND_ADD entries in the peak edit log. Kept populated so existing consumers keep working; the log is the source of truth and this is a view of part of it.
peak_edits
class-attribute
instance-attribute
#
The peak EDIT LOG: every human decision ever made about this scan's peak
list, append-only, and the source of truth manual_peaks above is
derived from.
Carried ON the scan rather than in a sidecar because scans get copied between machines and mailed to colleagues, and a sidecar does not travel with the file — the edits would be silently lost on transfer, which is worse than the immutability concern. Nothing here touches the ACQUIRED DATA: the signal and spectrum arrays and the acquisition metadata are untouched, and this sits beside them exactly as manual_peaks and integration_regions already do.
relaxometry_fit
class-attribute
instance-attribute
#
relaxometry_fit: RelaxometryFit | None
The relaxation measurement of a CPMG echo train (a low-field relaxometer's 1D record), reused on every load until what it was measured from changes. The 1D counterpart of Scan2D.relaxometry_fit.
pipeline_input_signal
class-attribute
instance-attribute
#
What a processing pipeline read when it produced accumulated_signal and accumulated_spectrum, stored as it was, so reprocessing runs on the data the pipeline saw. Unset unless Scan.processing_pipeline is set.
pipeline_input_spectrum
class-attribute
instance-attribute
#
noise_range
class-attribute
instance-attribute
#
The stretch the user declared noise-only; the signal-to-noise of every line is read against it. Unset means the noise is estimated from the whole trace.
Scan2D
#
accumulated_signal
class-attribute
instance-attribute
#
Accumulated results (always present)
metadata
class-attribute
instance-attribute
#
Acquisition metadata
signal_visualization_handler
class-attribute
instance-attribute
#
Visualization handler IDs for frontend rendering
spectrum_visualization_handler
class-attribute
instance-attribute
#
relaxometry_data
class-attribute
instance-attribute
#
relaxometry_data: RelaxometryData | None
Relaxometry data for T1/T2/CPMG experiments (optional)
manual_peaks
class-attribute
instance-attribute
#
manual_peaks: list[PeakInfo2D]
DERIVED projection of the EDIT_KIND_ADD entries in the peak edit log. Kept populated so existing consumers keep working; the log is the source of truth and this is a view of part of it.
peak_edits
class-attribute
instance-attribute
#
The peak EDIT LOG: every human decision ever made about this scan's peak
list, append-only, and the source of truth manual_peaks above is
derived from.
Carried ON the scan rather than in a sidecar because scans get copied between machines and mailed to colleagues, and a sidecar does not travel with the file — the edits would be silently lost on transfer, which is worse than the immutability concern. Nothing here touches the ACQUIRED DATA: the signal and spectrum arrays and the acquisition metadata are untouched, and this sits beside them exactly as manual_peaks and integration_regions already do.
diffusion_data
class-attribute
instance-attribute
#
diffusion_data: DiffusionData | None
PFG diffusion (DOSY) parameters (optional)
cross_peak_assignments
class-attribute
instance-attribute
#
Cross-peak to atom-pair assignments. On the scan for the same reason the edit log is: a crosspeak identity only means anything in this peak list.
relaxometry_fit
class-attribute
instance-attribute
#
relaxometry_fit: RelaxometryFit | None
The relaxation measurement of a relaxometry series, reused on every load until what it was measured from changes. On the scan, not the sample: it describes this data, and travels with the file.
pipeline_input_signal
class-attribute
instance-attribute
#
What a processing pipeline read when it produced accumulated_signal and accumulated_spectrum, stored as it was, so reprocessing runs on the data the pipeline saw. Unset unless Scan.processing_pipeline is set.
pipeline_input_spectrum
class-attribute
instance-attribute
#
disabled_shift_scan_ids
class-attribute
instance-attribute
#
disabled_shift_scan_ids: list[str]
Sibling scans whose measured shifts the user turned off for cross-peak assignment.
shift_use
class-attribute
instance-attribute
#
Whether cross-peak assignment takes measured shifts from the scans open on pages.
ScanDataSummary
#
ScanKind
#
ScanOrigin
#
origin_scan_id
class-attribute
instance-attribute
#
Scan.id inside the package; differs from Scan.id when the import remapped it.
content_sha256
class-attribute
instance-attribute
#
ScanEntry.member.sha256 as imported; identifies a re-import of the same content.
origin_profile
class-attribute
instance-attribute
#
The exporter's profile name, display only.