Skip to content

Commit

Permalink
removing incorrect direct beam stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rakowski committed Nov 8, 2023
1 parent 283f8ea commit 3bb6f0a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions py4DSTEM/process/strain/strain.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,6 @@ def set_hkl(
g1_hkl = np.array(g1_hkl)
g2_hkl = np.array(g2_hkl)

# TODO check this is correct
# calculate the direct beam
direct_beam = np.cross(g1_hkl, g2_hkl)
direct_beam = direct_beam / np.gcd.reduce(direct_beam)

# Initialize a PLA
bvs_hkl = PointListArray(
shape=self.shape,
Expand Down Expand Up @@ -449,13 +444,6 @@ def set_hkl(
+ g2_hkl[:, np.newaxis] * braggvectors_indexed_dp["g2_ind"]
)
# self.vectors_hkl = vectors_hkl
# I think 0,0,0 reflection will always be at index 0 but this will find it
index = np.where((vectors_hkl == 0).all(axis=0))[0][
0
] # returns tuple and we want the zeroth index
# print(vectors_hkl.shape)
# print(direct_beam.shape)
vectors_hkl[:, index] = direct_beam

# populate h,k,l fields
# print(vectors_hkl.shape)
Expand Down

0 comments on commit 3bb6f0a

Please sign in to comment.