Skip to content

Commit

Permalink
Add spatial frequency to places where spectral equivalence is mentioned
Browse files Browse the repository at this point in the history
  • Loading branch information
ksunden committed Jul 25, 2018
1 parent cdc3436 commit e7383f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,8 @@ for the problem you are working on.
The :mod:`unyt` library implements the following equivalencies:

* "thermal": conversions between temperature and energy (:math:`E = k_BT`)
* "spectral": conversions between wavelength, frequency, and energy for photons
* "spectral": conversions between wavelength, spatial frequency, frequency, and
energy for photons
(:math:`E = h\nu = hc/\lambda`, :math:`c = \lambda\nu`)
* "mass_energy": conversions between mass and energy (:math:`E = mc^2`)
* "lorentz": conversions between velocity and Lorentz factor
Expand All @@ -471,7 +472,7 @@ array, use the :meth:`unit_array.list_equivalencies
schwarzschild: mass <-> length
compton: mass <-> length
>>> km.list_equivalencies()
spectral: length <-> frequency <-> energy
spectral: length <-> spatial_frequency <-> frequency <-> energy
schwarzschild: mass <-> length
compton: mass <-> length

Expand Down
2 changes: 1 addition & 1 deletion unyt/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ def list_equivalencies(self):
-------
>>> from unyt import km
>>> (1.0*km).list_equivalencies()
spectral: length <-> frequency <-> energy
spectral: length <-> spatial_frequency <-> frequency <-> energy
schwarzschild: mass <-> length
compton: mass <-> length
"""
Expand Down

0 comments on commit e7383f0

Please sign in to comment.