Skip to content

Commit f887a13

Browse files
committed
update kinematic
1 parent 425c886 commit f887a13

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

pyTEMlib/diffraction_tools/kinematic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def calculate_holz(dif):
244244

245245
g_allowed = dif['allowed']['g']
246246
# g_allowed[:,0] is 2 Bragg angles theta
247-
d_theta = g_allowed[:,0]/2-np.arcsin(g_allowed[:,2]/g_allowed[:,3])
247+
d_theta = (g_allowed[:,0]/2 - np.arcsin(g_allowed[:,2]/g_allowed[:,3])) / (np.pi/2)
248248

249249
# Calculate nearest point of HOLZ and Kikuchi lines
250250
g_closest = dif['allowed']['g'].copy()

pyTEMlib/file_tools.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,10 @@ def open_file(filename, write_hdf_file=False,
490490
dset = {'Channel_000': dset}
491491

492492
for key in dset:
493-
read_dm_annotation(dset[key])
493+
try:
494+
read_dm_annotation(dset[key])
495+
except:
496+
pass
494497

495498
elif extension == '.emd':
496499
if not sum_eds:

pyTEMlib/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
22
version
33
"""
4-
__version__ = '0.2026.5.0'
4+
__version__ = '0.2026.6.0'
55
__time__ = '2026-04-28 20:58:26'

0 commit comments

Comments
 (0)