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

Method to create a pyFAI detector object #135

Open
takluyver opened this issue Jan 20, 2022 · 0 comments
Open

Method to create a pyFAI detector object #135

takluyver opened this issue Jan 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@takluyver
Copy link
Member

In an MID example notebook, EXtra-geom geometry was used in pyFAI like this:

import pyFAI.azimuthalIntegrator
import pyFAI.detectors

agipd = pyFAI.detectors.Detector(200e-6,200e-6)
agipd.aliases = ["AGIPD1M"]
agipd.shape = (16*512,128)
agipd.mask = np.zeros((16*512,128))
agipd.IS_CONTIGUOUS = False
agipd.IS_FLAT = True
agipd.set_pixel_corners(geom.to_distortion_array())

px = 570
py = 685
ai = pyFAI.azimuthalIntegrator.AzimuthalIntegrator(detector = agipd)
ai.setFit2D(7800,px,py)
ai.wavelength = 1.38e-10

The first half - making a pyFAI detector object - looks like it could easily be wrapped up in a method in EXtra-geom.

cc @dallanto @jo-moeller

@takluyver takluyver added the enhancement New feature or request label Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant