Skip to content

Commit

Permalink
HRTEM normalization issue and 4D-STEM hdf5 issue rectified
Browse files Browse the repository at this point in the history
  • Loading branch information
HamishGBrown committed Oct 30, 2020
1 parent 0ee2a89 commit 96c98e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions pyms/Premixed_routines.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,9 +752,11 @@ def STEM_multislice(
DPshape, _, Ksize = workout_4DSTEM_datacube_DP_size(
FourD_STEM, real_dim, gridshape
)
scanshape = generate_STEM_raster(
real_dim, eV, app, tiling=tiling, ROI=ROI
).shape[:-1]
if scan_posn is None:
scan_posn = generate_STEM_raster(
real_dim, eV, app, tiling=tiling, ROI=ROI
)
scanshape = scan_posn.shape[:-1]
Rpix = nyquist_sampling(eV=eV, alpha=app)

# Make a datacube for each thickness of interest
Expand Down
1 change: 0 additions & 1 deletion pyms/py_multislice.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,6 @@ def STEM(
probes = complex_mul(probe_.view(1, *probe_.size()), probes)

# Thickness series
# - need to take the difference between sequential thickness variations
for it, t in enumerate(nslices_):

# Evaluate exit surface wave function from input probes
Expand Down
2 changes: 1 addition & 1 deletion pyms/utils/torch_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def crop_to_bandwidth_limit_torch(
limit=2 / 3,
qspace_in=True,
qspace_out=True,
norm="conserve_L2",
norm="conserve_norm",
):
"""Crop an array to its bandwidth limit (remove superfluous array entries)."""
# Check if array is complex or not
Expand Down

0 comments on commit 96c98e2

Please sign in to comment.