Skip to content

Commit

Permalink
Merge pull request #77 from pycroscopy/ase-dif
Browse files Browse the repository at this point in the history
some bugs removed
  • Loading branch information
gduscher authored Feb 5, 2022
2 parents 39499e4 + 0032116 commit 02e9f42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyTEMlib/kinematic_scattering.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,15 +687,15 @@ def kinematic_scattering(atoms, verbose=False):
# Incident wave vector k0 in vacuum and material
############################################

ratio = (1 + 1.9569341 * tags['acceleration_voltage_V']) / (np.pi * volume_unit_cell)
#atio = (1 + 1.9569341 * tags['acceleration_voltage_V']) / (np.pi * volume_unit_cell)

u0 = 0 # in (Ang)
# atom form factor of zero reflection angle is the inner potential in 1/A
for i in range(len(atoms)):
u0 += feq(atoms[i].symbol, 0)

# Conversion of inner potential to Volts
u0 = u0 * ratio # inner potential in 1/Ang^2
# u0 = u0 * ratio # inner potential in 1/Ang^2

scattering_factor_to_volts = (const.h ** 2) * (1e10 ** 2) / (2 * np.pi * const.m_e * const.e) * volume_unit_cell

Expand Down
4 changes: 2 additions & 2 deletions pyTEMlib/version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
version
"""
_version = '0.2022.2.0'
_version = '0.2022.2.1'
__version__ = _version
_time = '2022-02-01 19:08:26'
_time = '2022-02-04 19:08:26'

0 comments on commit 02e9f42

Please sign in to comment.