File: test_magnetic_ff.py

package info (click to toggle)
python-periodictable 2.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,068 kB
  • sloc: python: 13,338; makefile: 103; sh: 92; javascript: 7
file content (12 lines) | stat: -rw-r--r-- 500 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
from periodictable import elements

def test():
    # add_form_factor("Form", "MFE2", (  0.026300, 34.959702,  0.366800, 15.943500,  0.618800,  5.593500, -0.011900) )
    # add_form_factor("j2", "FE2 ",( 1.6490,16.559, 1.9064, 6.133, 0.5206, 2.137, 0.0035))
    A,a,B,b,C,c,D = elements.Fe.magnetic_ff[2].j0
    assert b == 15.9435
    ion = elements.Fe.ion[2]
    assert ion.magnetic_ff[ion.charge].j0[3] == b
    assert ion.magnetic_ff[ion.charge].j2[3] == 6.133

if __name__ == "__main__": test()