ptypy.core.manager.Bragg3dModel#
- class ptypy.core.manager.Bragg3dModel(ptycho=None, pars=None, label=None)#
Bases:
VanillaModel for 3D Bragg ptycho data, where a set of rocking angles are measured for each scanning position. The result is pods carrying 3D diffraction patterns and 3D Views into a 3D object.
Inherits from Vanilla because _create_pods and the object init is identical.
Frames for each position are assembled according to the actual xyz data, so it will not work if two acquisitions are done at the same position.
- __init__(ptycho=None, pars=None, label=None)#
Create scan model object.
- Parameters:
pars (dict or Param) – Input parameter tree.
ptycho (Ptycho instance) – Ptycho instance to which this scan belongs
label (str) – Unique label
Methods
__init__([ptycho, pars, label])Create scan model object.
makePtyScan(pars)Factory for PtyScan object.
new_data(max_frames)Feed data from ptyscan object.
Attributes
DEFAULT- classmethod makePtyScan(pars)#
Factory for PtyScan object. Return an instance of the appropriate PtyScan subclass based on the input parameters.
- Parameters:
pars (dict or Param) – Input parameters according to
scan.data.
- new_data(max_frames)#
Feed data from ptyscan object. :return: None if no data is available, True otherwise.