Package pipe_control :: Module spectrometer
[hide private]
[frames] | no frames]

Module spectrometer

source code

Module for manipulating the spectrometer experimental information.

Functions [hide private]
None or RelaxError instance
check_frequency_func(id=None)
Check that the frequency for the given ID has been set.
source code
None or RelaxError instance
check_spectrometer_setup_func()
Check that spectrometer frequencies have been set up.
source code
 
copy_frequencies(pipe_from=None, pipe_to=None, id=None)
Copy the frequency information from one data pipe to another.
source code
 
delete_frequencies(id=None)
Delete the spectrometer frequency corresponding to the experiment ID.
source code
 
frequency_checks(frq)
Perform a number of checks on the given proton frequency.
source code
float
get_frequency(id=None)
Return the frequency corresponding to the given ID.
source code
list of float
get_frequencies(units='Hz')
Return a list of all the current spectrometer frequencies.
source code
float
loop_frequencies()
Generator function for looping over the spectrometer frequencies.
source code
 
set_frequency(id=None, frq=None, units='Hz')
Set the spectrometer frequency of the experiment.
source code
 
set_temperature(id=None, temp=None)
Set the experimental temperature.
source code
Variables [hide private]
  check_frequency = <lib.checks.Check instance at 0x7f4091735c20>
  check_spectrometer_setup = <lib.checks.Check instance at 0x7f4...
  __package__ = 'pipe_control'

Imports: modf, pi, warn, Check, RelaxError, RelaxNoFrqError, periodic_table, RelaxWarning, RelaxNoFrqWarning, pipes, check_pipe


Function Details [hide private]

check_frequency_func(id=None)

source code 

Check that the frequency for the given ID has been set.

Parameters:
  • id (str) - The experiment ID string.
Returns: None or RelaxError instance
The initialised RelaxError object or nothing.

check_spectrometer_setup_func()

source code 

Check that spectrometer frequencies have been set up.

Returns: None or RelaxError instance
The initialised RelaxError object or nothing.

copy_frequencies(pipe_from=None, pipe_to=None, id=None)

source code 

Copy the frequency information from one data pipe to another.

Parameters:
  • pipe_from (str) - The data pipe to copy the frequency information from. This defaults to the current data pipe.
  • pipe_to (str) - The data pipe to copy the frequency information to. This defaults to the current data pipe.
  • id (str) - The experiment ID string.

delete_frequencies(id=None)

source code 

Delete the spectrometer frequency corresponding to the experiment ID.

Parameters:
  • id (str) - The experiment ID string.

frequency_checks(frq)

source code 

Perform a number of checks on the given proton frequency.

Parameters:
  • frq (float or None) - The proton frequency value in Hertz.

get_frequency(id=None)

source code 

Return the frequency corresponding to the given ID.

Parameters:
  • id (str) - The experiment ID string.
Returns: float
The spectrometer proton frequency in Hertz for the given ID.

get_frequencies(units='Hz')

source code 

Return a list of all the current spectrometer frequencies.

The returned values can be changed with the units argument which can have the following values:

  • 'Hz' will return the proton frequency (wH),
  • 'MHz' will return the proton frequency in megahertz,
  • 'T' will return the B0 field in Tesla.
Parameters:
  • units (str) - The magnetic field units to return. This can be one of 'Hz', 'MHz', or 'T'.
Returns: list of float
The frequency list for the current data pipe.

loop_frequencies()

source code 

Generator function for looping over the spectrometer frequencies.

Returns: float
The frequency.

set_frequency(id=None, frq=None, units='Hz')

source code 

Set the spectrometer frequency of the experiment.

Parameters:
  • id (str) - The experiment ID string (allowing for multiple experiments per data pipe).
  • frq (float) - The spectrometer frequency in Hertz.
  • units (str) - The units of frequency. This can be one of "Hz", "kHz", "MHz", or "GHz".

set_temperature(id=None, temp=None)

source code 

Set the experimental temperature.

Parameters:
  • id (str) - The experiment ID string (allowing for multiple experiments per data pipe).
  • temp (float) - The temperature in Kelvin.

Variables Details [hide private]

check_spectrometer_setup

Value:
<lib.checks.Check instance at 0x7f4091735c68>