cagey.NmrPeak#

class cagey.NmrPeak(ppm, amplitude)[source]#

Bases: object

An NMR peak.

Parameters:
  • ppm (float) – The ppm.

  • amplitude (float) – The amplitude.

Methods

has_ppm

Check if the peak has the given ppm.

in_range

Check if the peak is in the ppm given range.

Attributes

ppm

The ppm.

amplitude

The amplitude.

has_ppm(ppm, atol=0.05)[source]#

Check if the peak has the given ppm.

Parameters:
  • ppm (float) – The ppm.

  • atol (float) – The absolute tolerance.

Returns:

True if the peak has the ppm, False otherwise.

Return type:

bool

in_range(min_ppm, max_ppm)[source]#

Check if the peak is in the ppm given range.

Parameters:
  • min_ppm (float) – The minimum ppm.

  • max_ppm (float) – The maximum ppm.

Returns:

True if the peak is in the ppm range, False otherwise.

Return type:

bool

amplitude: float#

The amplitude.

ppm: float#

The ppm.