Exemple #1
0
    def __init__(self, nTrans=1, nRot=1, nDiff=1000):
        """
        Constructor of the class

        :param nTrans: number of translations
        :param nRot: number of translations
        :param nDiff: number of points in diffraction pattern
        """
        DiffMap.__init__(self, npt_slow=nRot, npt_fast=nTrans, npt_rad=nDiff)
        self.hdf5path = "diff_tomo/data/sinogram"
        self.experiment_title = "Diffraction Tomography"
        self.slow_motor_name = "rotation"
        self.fast_motor_name = "translation"
Exemple #2
0
    def __init__(self, nTrans=1, nRot=1, nDiff=1000):
        """
        Constructor of the class

        :param nTrans: number of translations
        :param nRot: number of translations
        :param nDiff: number of points in diffraction pattern
        """
        DiffMap.__init__(self, npt_slow=nRot, npt_fast=nTrans, npt_rad=nDiff)
        self.hdf5path = "diff_tomo/data/sinogram"
        self.experiment_title = "Diffraction Tomography"
        self.slow_motor_name = "rotation"
        self.fast_motor_name = "translation"
Exemple #3
0
def main():
    dt = DiffMap()
    options, config = dt.parse(with_config=True)

    if not options.gui:
        dt.setup_ai()
        dt.makeHDF5()
        dt.process()
        dt.show_stats()
    else:
        from silx.gui import qt
        from pyFAI.gui.diffmap_widget import DiffMapWidget
        app = qt.QApplication([])
        window = DiffMapWidget()
        window.set_config(config)
        # window.restore()
        window.show()
        sys.exit(app.exec_())
Exemple #4
0
def main():
    dt = DiffMap()
    options, config = dt.parse(with_config=True)

    if not options.gui:
        dt.setup_ai()
        dt.makeHDF5()
        dt.process()
        dt.show_stats()
    else:
        from silx.gui import qt
        from pyFAI.gui.diffmap_widget import DiffMapWidget
        from pyFAI.gui.ApplicationContext import ApplicationContext
        settings = qt.QSettings(qt.QSettings.IniFormat, qt.QSettings.UserScope,
                                "pyfai", "pyfai-integrate", None)
        # initialization of the singleton
        context = ApplicationContext(settings)
        app = qt.QApplication([])
        window = DiffMapWidget()
        window.set_config(config)
        # window.restore()
        window.show()
        sys.exit(app.exec_())