Skip to content

Commit

Permalink
update to database Version 8, with fix for Mo
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Aug 13, 2020
1 parent 0d13700 commit 9e849c7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions data_sources/Version.dat
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
5.0 // 2020-07-15 11:38:00 // Use elemental data (mass and density) from Wikipedia.
6.0 // 2020-07-17 11:32:00 // Add ionization potential values from Knoll.
7.0 // 2020-08-02 08:25:00 // Fix mu_total in Chantler table
8.0 // 2020-08-13 10:25:00 // Fix repeated energy for Mo in fine Chantler data
5 changes: 5 additions & 0 deletions python/tests/test_xray.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@ def test_f1f2_chantler():
assert_allclose(f1, chantler_data('Au', en, 'f1'), rtol=0.01)
assert_allclose(f2, chantler_data('Au', en, 'f2'), rtol=0.01)

def test_f1f2_chantler_mo():
en = np.linspace(1000, 500000, 501)
f1 = f1_chantler('Mo', en)
assert(len(f1) > 400)

def test_chantler_energies():

en = np.array([6876.64, 6945.41, 7014.86, 7085.01, 7155.86, 7227.42,
Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_xraydb.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def test_xraydb_version():
xdb = XrayDB()
version = xdb.get_version()
assert 'XrayDB Version: 7.0, Python' in version
assert 'XrayDB Version: 8.0, Python' in version

hist = xdb.get_version(with_history=True)
assert len(hist) > 350
Expand Down
Binary file modified python/xraydb/xraydb.sqlite
Binary file not shown.
Binary file modified xraydb.sqlite
Binary file not shown.

0 comments on commit 9e849c7

Please sign in to comment.