pyFAI/sandbox/qt_mpl_test.py

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"),
)