Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py4DSTEM.process.virtualimage.get_virtualimage_circ (strain mapping tutorial) #13

Open
lylofu opened this issue Apr 9, 2022 · 0 comments

Comments

@lylofu
Copy link

lylofu commented Apr 9, 2022

in the strain mapping tutorial, this step doesn't work !

[12]

Next, create a BF virtual detector using the the center beam position (qxy0, qy0)

We will expand the BF radius slightly (+ 2 px).

The DF virtual detector can be set to all remaining pixels.

expand_BF = 2.0
image_BF = py4DSTEM.process.virtualimage.get_virtualimage_circ(
dataset,
qx0, qy0,
probe_semiangle + expand_BF)
image_DF = py4DSTEM.process.virtualimage.get_virtualimage_ann(
dataset,
qx0, qy0,
probe_semiangle + expand_BF,
1e3)

[return]

AttributeError Traceback (most recent call last)
Input In [168], in <cell line: 5>()
1 # Next, create a BF virtual detector using the the center beam position (qxy0, qy0)
2 # We will expand the BF radius slightly (+ 2 px).
3 # The DF virtual detector can be set to all remaining pixels.
4 expand_BF = 2.0
----> 5 image_BF = py4DSTEM.process.get_virtualimage_circ(
6 dataset,
7 qx0, qy0,
8 probe_semiangle + expand_BF)
9 image_DF = py4DSTEM.process.virtualimage.get_virtualimage_ann(
10 dataset,
11 qx0, qy0,
12 probe_semiangle + expand_BF,
13 1e3)

AttributeError: module 'py4DSTEM.process' has no attribute 'get_virtualimage_circ'

Any tips to fix that ?

py4DSTEM.process.virtualimage.virtualimage.get_virtualimage_circ
or
py4DSTEM.process.virtualimage.get_virtualimage_circ
?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant