mirror of https://github.com/silx-kit/pyFAI.git
17 lines
501 B
Python
17 lines
501 B
Python
import logging
|
|
import pyFAI, fabio
|
|
from pyFAI.test.utilstest import UtilsTest
|
|
from pyFAI.gui.mpl_calib_qt import QtMplCalibWidget
|
|
from pyFAI.gui.peak_picker import PeakPicker
|
|
logging.basicConfig()
|
|
|
|
from pyFAI.calibrant import get_calibrant
|
|
agbh = get_calibrant("AgBh")
|
|
|
|
img = fabio.open(UtilsTest.getimage("Pilatus1M.edf")).data
|
|
pp = PeakPicker(data=img,
|
|
calibrant=agbh,
|
|
wavelength=1e-10,
|
|
detector=pyFAI.detector_factory("Pilatus1M"),
|
|
)
|