Skip to content

Generator#

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

FitSpinSystemResult #

success class-attribute instance-attribute #

success: bool

error class-attribute instance-attribute #

error: str | None

spins class-attribute instance-attribute #

Fitted shifts

j_hz class-attribute instance-attribute #

Fitted couplings

linewidth_hz class-attribute instance-attribute #

linewidth_hz: float

fit class-attribute instance-attribute #

fit: LineFit | None

The stored-fit record, kind "spin_system", in the shown frame

converged class-attribute instance-attribute #

converged: bool

evaluations class-attribute instance-attribute #

evaluations: int

warnings class-attribute instance-attribute #

warnings: list[str]

Translation keys

axis_ppm class-attribute instance-attribute #

axis_ppm: list[float]

The region at full resolution, ppm: the data, the model and what is left.

data class-attribute instance-attribute #

data: list[float]

model class-attribute instance-attribute #

model: list[float]

residual class-attribute instance-attribute #

residual: list[float]

detected_name class-attribute instance-attribute #

detected_name: str

Letter-pattern name of the fitted system

SeedSpinSystemResponse #

success class-attribute instance-attribute #

success: bool

error class-attribute instance-attribute #

error: str | None

spins class-attribute instance-attribute #

spins: list[SeedSpin]

j_hz class-attribute instance-attribute #

ties class-attribute instance-attribute #

clusters class-attribute instance-attribute #

clusters: list[SpinCluster]

needs_selection class-attribute instance-attribute #

needs_selection: bool

More protons than the simulator takes and no atoms chosen: spins is empty and clusters lists the choices.

fragment class-attribute instance-attribute #

fragment: bool

A chosen cluster was itself too large and was cut to the limit; omitted protons were left out.

omitted class-attribute instance-attribute #

omitted: int

nucleus class-attribute instance-attribute #

nucleus: Nucleus

The nucleus the system was built for

decoupled class-attribute instance-attribute #

decoupled: bool

13C: the lines are singlets (apart from C-F, C-P, C-D)

SimulateSpinSystemResponse #

success class-attribute instance-attribute #

success: bool

error class-attribute instance-attribute #

error: str | None

spectrum_trace class-attribute instance-attribute #

spectrum_trace: Trace | None

signal_trace class-attribute instance-attribute #

signal_trace: Trace | None

transitions class-attribute instance-attribute #

transitions: list[SpinTransition]

Stick spectrum behind the dressed lines

n_spins class-attribute instance-attribute #

n_spins: int

Total individual nuclei after equivalent groups are expanded

SpinLineShape #

Line shape used to dress the computed stick spectrum

LORENTZIAN class-attribute instance-attribute #

LORENTZIAN = 0

GAUSSIAN class-attribute instance-attribute #

GAUSSIAN = 1

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
]

JCouplingRow #

One row of the symmetric J-coupling matrix, in Hz

values class-attribute instance-attribute #

values: list[float]

SeedSource #

PREDICTED class-attribute instance-attribute #

PREDICTED = 0

ASSIGNED class-attribute instance-attribute #

ASSIGNED = 1

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
]

SeedSpin #

One spin of a seeded system

label class-attribute instance-attribute #

label: str

Built from the numbers of the heavy atoms carrying the protons

shift_ppm class-attribute instance-attribute #

shift_ppm: float

count class-attribute instance-attribute #

count: int

Magnetically equivalent protons

atom_indices class-attribute instance-attribute #

atom_indices: list[int]

Heavy atoms of the SMILES graph carrying the protons

source class-attribute instance-attribute #

source: SeedSource

Where the shift came from

nucleus class-attribute instance-attribute #

nucleus: Nucleus

Isotope of the spin (1H, 13C, or a coupled 19F, 31P, 2H)

SpinCluster #

A set of protons joined by couplings the simulator can resolve

index class-attribute instance-attribute #

index: int

atom_indices class-attribute instance-attribute #

atom_indices: list[int]

n_spins class-attribute instance-attribute #

n_spins: int

Protons in the cluster

min_shift_ppm class-attribute instance-attribute #

min_shift_ppm: float

max_shift_ppm class-attribute instance-attribute #

max_shift_ppm: float

selected class-attribute instance-attribute #

selected: bool

Part of the returned spins

too_big class-attribute instance-attribute #

too_big: bool

Even cut at its first-order couplings, a group of it is over the simulator's limit

largest_group class-attribute instance-attribute #

largest_group: int

Protons in its largest exactly simulated group

SpinDefinition #

One spin, or one magnetically equivalent group of spins (a CH3 is count = 3)

shift_ppm class-attribute instance-attribute #

shift_ppm: float

Isotropic chemical shift

nucleus class-attribute instance-attribute #

nucleus: Nucleus

Isotope of this spin (defaults to 1H)

count class-attribute instance-attribute #

count: int

Number of magnetically equivalent nuclei in the group (>= 1)

label class-attribute instance-attribute #

label: str

Optional display name, e.g. "CH3"

quadrupolar_cq_hz class-attribute instance-attribute #

quadrupolar_cq_hz: float

C_Q = e²qQ/h; valid for I >= 1

quadrupolar_eta class-attribute instance-attribute #

quadrupolar_eta: float

EFG asymmetry, 0 to 1

SpinFitTie #

Spins or couplings a fit holds equal to one another: chemically equivalent spins share one shift, symmetry-related pairs share one coupling. Exactly one of the two lists is set.

spins class-attribute instance-attribute #

spins: list[int]

pairs class-attribute instance-attribute #

pairs: list[SpinPair]

SpinPair #

Two spins, by their index in the request's spin list

a class-attribute instance-attribute #

a: int

b class-attribute instance-attribute #

b: int

SpinTransition #

A resolved single-quantum transition of the observed nucleus

frequency_hz class-attribute instance-attribute #

frequency_hz: float

Offset from the observed nucleus' carrier

intensity class-attribute instance-attribute #

intensity: float

Relative intensity, normalised to the observed spin count