Postprocessing#
Types from the postprocessing area of the protocol that appear in API signatures and attributes.
Postprocessing
#
force_rerun
class-attribute
instance-attribute
#
Force rerun - invalidates source data cache before execution Set to true when user explicitly clicks "rerun" button
PostprocessingNode
#
Oneofs
- op:
load_as_current
class-attribute
instance-attribute
#
load_as_current: OpLoadAsCurrent | None
Deprecated: read as pipeline_output and written back as one.
reference_deconvolution
class-attribute
instance-attribute
#
reference_deconvolution: OpReferenceDeconvolution | None
AlignmentAxis
#
AlignmentMethod
#
AxisReduceAxis
#
AxisReduceOperation
#
Reduce 2D signal/spectrum along an axis using an aggregation operation. Converts 2D -> 1D by applying sum, mean, max, min, etc. along one axis.
BaselineRemoveAxis
#
ComplexPhaseOutput
#
FftMethod
#
InterpolateMethod
#
LinearPredictionAxis
#
LinearPredictionDirection
#
LoadAsCurrentOutput
#
MathOperation
#
Math operations on signals/spectra
OpAlign
#
OpAlignInputs
#
reference_ppm
class-attribute
instance-attribute
#
Target PPM for reference peak alignment (used with ALIGN_REFERENCE)
search_window_ppm
class-attribute
instance-attribute
#
PPM window around target to search for peak (used with ALIGN_REFERENCE)
axis
class-attribute
instance-attribute
#
axis: AlignmentAxis
2D only. reference_ppm is the F2 target; F1 has its own.
OpAxisReduce
#
OpAxisReduceInputs
#
Oneofs
- data:
OpAxisReduceOutputs
#
OpBaselineRemove
#
OpBaselineRemoveInputs
#
method
class-attribute
instance-attribute
#
The baseline method list is shared with project.BaselineCorrectionSettings - there is exactly one such list.
polynomial_order
class-attribute
instance-attribute
#
Parameter set mirroring project.BaselineCorrectionSettings. Each field carries explicit presence so "not supplied" is distinguishable from "supplied at the proto3 default"; polynomial_order = 0 in particular is a valid constant-offset fit.
Polynomial order for POLYNOMIAL / MASKED_POLY.
smoothness_decades
class-attribute
instance-attribute
#
Whittaker smoothness in decades of lambda (7-12, centre 10); length-normalised by the consumer.
asymmetry
class-attribute
instance-attribute
#
Asymmetry p for the ALS family.
iterations
class-attribute
instance-attribute
#
Maximum solver iterations for the ALS family.
mask_sigma
class-attribute
instance-attribute
#
Signal-mask threshold in robust noise sigma.
edge_fraction
class-attribute
instance-attribute
#
Edge window as a fraction of the spectrum (0-0.5).
OpComplexPhase
#
OpComplexPhaseInputs
#
Oneofs
- data:
unwrap
class-attribute
instance-attribute
#
Whether to unwrap the phase (remove 2Ï€ discontinuities)
OpComplexPhaseOutputs
#
OpCurrentSignal
#
OpCurrentSignalInputs
#
OpCurrentSpectrum
#
OpCurrentSpectrumInputs
#
OpCurrentSpectrumOutputs
#
OpFft
#
OpFftInputs
#
window
class-attribute
instance-attribute
#
window: WindowType
Window/apodization settings (moved from attrs)
window_lb
class-attribute
instance-attribute
#
Window parameters (moved from attrs)
Line broadening for exponential (Hz), default 1.0
window_sigma
class-attribute
instance-attribute
#
Sigma for gaussian (0-0.5), default 0.3
window_alpha
class-attribute
instance-attribute
#
Alpha/beta for kaiser/tukey, default 5.0
window_adaptive_lb
class-attribute
instance-attribute
#
Whether the exponential line broadening is measured from the signal
instead of being read from window_lb. Unset means false. Only the
exponential window is affected; when the signal carries no line whose
width can be measured the consumer falls back to window_lb.
window_gb
class-attribute
instance-attribute
#
Gaussian FWHM in Hz for LORENTZ_GAUSS; unset takes window_sigma.
window_sine_offset
class-attribute
instance-attribute
#
WINDOW_SINE_BELL: start as a fraction of pi (default 0.5) and exponent (default 1).
window_rise_fraction
class-attribute
instance-attribute
#
WINDOW_TRAPEZOID: rise (default 0) and fall (default 0.5) fractions of the FID.
OpFftOutputs
#
spectrum
class-attribute
instance-attribute
#
FFT produces spectrum matching input dimensionality
OpInterpolate
#
OpInterpolateInputs
#
Oneofs
- data:
OpInterpolateOutputs
#
OpLinearPrediction
#
OpLinearPredictionInputs
#
coefficients
class-attribute
instance-attribute
#
0 takes the default of 32 coefficients.
first_point_count
class-attribute
instance-attribute
#
Points the coefficients are fitted on, from the start; 0 takes every point.
predicted_points
class-attribute
instance-attribute
#
Points appended (forward) or replaced (backward); 0 takes the acquired length (forward) or 4 (backward).
axis
class-attribute
instance-attribute
#
axis: LinearPredictionAxis
Axis of a 2D signal; a 1D signal ignores it.
OpLoadAsCurrent
#
OpLoadAsCurrentInputs
#
OpLoadAsCurrentOutputs
#
OpMath
#
OpMathInputs
#
Oneofs
- a: First operand (required)
- b: Second operand (optional - for binary operations)
scalar
class-attribute
instance-attribute
#
Scalar value for scalar operations (pow exponent, etc.)
OpMathOutputs
#
OpNumber
#
OpPhaseAutoCorr
#
OpPhaseAutoCorrInputs
#
order
class-attribute
instance-attribute
#
Highest polynomial order the estimator may fit. Shares the enum with project.PhaseCorrectionSettings so there is one order vocabulary. PHASE_ORDER_AUTO fits p2 only when it is justified, so it legitimately returns p2 = 0 on spectra whose phase is linear.
Explicitly optional: PHASE_ORDER_AUTO is the zero value, so presence is the only way to distinguish "the user chose AUTO" from "no choice was made". Unset defers to the NUCLEI_PHASE_ORDER environment variable and then to the first-order default; consumers must test for absence rather than truthiness.
OpPhaseCorr
#
OpPhaseCorrInputs
#
p0
class-attribute
instance-attribute
#
Phase polynomial in degrees, applied as corrected[k] = data[k] * exp(1j(p0 + p1u + p2*u**2)) with u = k/n. p2 = 0 reduces exactly to first-order correction.
OpPipelineOutput
#
The designated result of a processing pipeline. A graph run by batch, a schedule, an acquisition or a script holds exactly one; its input is what the run produces.
OpPipelineOutputInputs
#
OpPipelineOutputOutputs
#
OpPlot
#
OpPlotInputs
#
OpPlotOutputs
#
OpPlugin
#
Plugin-provided postprocessing operation Allows plugins to define custom postprocessing nodes with arbitrary inputs/outputs
node_type
class-attribute
instance-attribute
#
Node type within the plugin (e.g., "custom_filter")
attributes_json
class-attribute
instance-attribute
#
Arbitrary attributes in JSON format Allows plugins to define their own parameter structure
inputs_json
class-attribute
instance-attribute
#
Input data in JSON format Populated at runtime with actual data from connections
outputs_json
class-attribute
instance-attribute
#
Output data in JSON format Returned by the plugin operation
OpRawSignal
#
OpRawSignalInputs
#
OpRawSignalOutputs
#
signal
class-attribute
instance-attribute
#
Raw signal can be 1D or 2D depending on acquisition mode
OpReferenceDeconvolution
#
Line-shape correction of a 1D FID by reference deconvolution. Refuses 2D signals.
OpReferenceDeconvolutionInputs
#
OpReferenceDeconvolutionOutputs
#
OpResample
#
Resample signal/spectrum to new axis range
OpResampleInputs
#
Oneofs
- data:
method
class-attribute
instance-attribute
#
method: InterpolateMethod
Interpolation method (reuse from interpolate.proto)
OpResampleOutputs
#
OpScanSpectrum
#
Reads the processed spectrum of a stored scan by reference, so a graph can use scans other than the loaded one. The scan is read as the app shows it.
OpScanSpectrumInputs
#
OpSlice
#
OpSliceInputs
#
Oneofs
- data:
OpSliceOutputs
#
OpSmooth
#
Smooths a spectrum. Changes noise statistics and peak heights, so it is an explicit step.
OpSmoothInputs
#
sigma
class-attribute
instance-attribute
#
Gaussian width in samples; unset takes 4 (1D) or 2 (2D).
window_points
class-attribute
instance-attribute
#
Savitzky-Golay window in samples (odd); unset takes 11.
poly_order
class-attribute
instance-attribute
#
Savitzky-Golay polynomial order, below the window; unset takes 3.
preserve_integral
class-attribute
instance-attribute
#
Rescale so the integral is unchanged (1D). Unset means true.
OpSplitComplex
#
OpSplitComplexInputs
#
OpSplitComplexOutputs
#
re
class-attribute
instance-attribute
#
re: SplitComplexOutput | None
Outputs use names matching frontend: re, im, abs Each can hold either signal or spectrum depending on input type
OpSuppress
#
OpSuppressInputs
#
center
class-attribute
instance-attribute
#
Center of the region to suppress (in spectrum frequency units)
width
class-attribute
instance-attribute
#
Full width of the region to suppress (in spectrum frequency units)
axis
class-attribute
instance-attribute
#
axis: SuppressionAxis
2D only. center and width are the F2 band (or the 1D axis); F1 has its own.
OpSymmetrize
#
OpZeroFill
#
OpZeroFillInputs
#
PhaseAutoCorrAxis
#
PhaseAutoCorrMethod
#
PhaseCorrAxis
#
PhaseCorrMethod
#
PhaseUnit
#
PipelineOutputResult
#
ReferenceLineshape
#
SliceAxis
#
Extract a 1D slice from a 2D signal/spectrum at a specific position. Converts 2D -> 1D by selecting data at a particular index or value on one axis.
SlicePositionMode
#
SmoothMethod
#
SplitComplexOutput
#
SuppressionAxis
#
Which axis of a 2D spectrum a suppression band lies on; a 1D spectrum ignores it.