Skip to content
Snippets Groups Projects
Commit 7cc46ba0 authored by Duc Le's avatar Duc Le
Browse files

Re #18490 - doctest again.

parent 095bc03d
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,19 @@ The `x`-axis is given in Kelvin, and the heat capacity (`y`-axis) is in Joules p
if row['Value'] != 0:
print "%7s = % 7.5g" % (row['Name'], row['Value'])
.. testcleanup:: ExampleCrystalFieldHeatCapacity
.. testoutput:: ExampleCrystalFieldHeatCapacity
:hide:
:options: +ELLIPSIS, +NORMALIZE_WHITESPACE
B20 = ...
B22 = ...
B40 = ...
B42 = ...
B44 = ...
Cost function value = ...
Output (the numbers you see on your machine may vary):
.. code::
......
......@@ -78,6 +78,19 @@ The `x`-axis is given in Tesla, and the magnetisation (`y`-axis) is in bohr magn
if row['Value'] != 0:
print "%7s = % 7.5g" % (row['Name'], row['Value'])
.. testcleanup:: ExampleCrystalFieldMagnetisation
.. testoutput:: ExampleCrystalFieldMagnetisation
:hide:
:options: +ELLIPSIS, +NORMALIZE_WHITESPACE
B20 = 0...
B22 = 0...
B40 = -0...
B42 = -0...
B44 = -0...
Cost function value = ...
Output (the numbers you see on your machine may vary):
.. code::
......
......@@ -77,6 +77,19 @@ The `x`-axis is the temperature in Kelvin, and the magnetic moment (`y`-axis) is
if row['Value'] != 0:
print "%7s = % 7.5g" % (row['Name'], row['Value'])
.. testcleanup:: ExampleCrystalFieldMoment
.. testoutput:: ExampleCrystalFieldMoment
:hide:
:options: +ELLIPSIS, +NORMALIZE_WHITESPACE
B20 = 0...
B22 = 0...
B40 = -0...
B42 = -0...
B44 = -0...
Cost function value = ...
Output (the numbers you see on your machine may vary):
.. code::
......
......@@ -81,6 +81,19 @@ The `x`-axis is given in Kelvin, and the susceptibility (`y`-axis) is in cgs uni
if row['Value'] != 0:
print "%7s = % 7.5g" % (row['Name'], row['Value'])
.. testcleanup:: ExampleCrystalFieldSusceptibility
.. testoutput:: ExampleCrystalFieldSusceptibility
:hide:
:options: +ELLIPSIS, +NORMALIZE_WHITESPACE
B20 = 0...
B22 = 0...
B40 = -0...
B42 = -0...
B44 = -0...
Cost function value = ...
Output (the numbers you see on your machine may vary):
.. code::
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment