parameters: (dspacing, wavelength)
return_statement: return np.rad2deg(theta)
docstring: Get the two theta value for this peak.
  
      This is just Bragg's law relating wavelength to scattering angle.
      :param dspacing: DSpacing of a peak
      :param wavelength: Wavelength of a peak
      :returns: the scattering angle for the peak.
docstring_summary: Get the two theta value for this peak.
docstring_tokens: Get the two theta value for this peak .
function: def get_two_theta(dspacing, wavelength):
      """Get the two theta value for this peak.
  
      This is just Bragg's law relating wavelength to scattering angle.
      :param dspacing: DSpacing of a peak
      :param wavelength: Wavelength of a peak
      :returns: the scattering angle for the peak.
      """
      theta = 2. * np.arcsin(0.5 * (wavelength / dspacing))
      return np.rad2deg(theta)
function_tokens: def get_two_theta ( dspacing , wavelength ) : theta = 2. * np . arcsin ( 0.5 * ( wavelength / dspacing ) ) return np . rad2deg ( theta )