hexrd.preprocess.preprocessors module

class hexrd.preprocess.preprocessors.PP_Base(fname: str, omw: OmegaWedges, panel_opts: list, frame_start: int = 0, style: str = 'npz', **kwargs: Any)[source]

Bases: object

PROCFMT: str | None = None
RAWFMT: str | None = None
property framelist: Sequence[int]
property nframes: int
property omegas: ndarray[Any, dtype[_ScalarType_co]]
property oplist: list
processed() ProcessedImageSeries[source]
save_processed(name: str, threshold: int, output_dir: str | None = None) None[source]
class hexrd.preprocess.preprocessors.PP_Dexela(fname: str, omw: OmegaWedges, panel_opts: list, panel_id: str, frame_start: int = 0, style: str = 'npz', raw_format: str = 'hdf5', dark: ndarray[Any, dtype[_ScalarType_co]] | float32 = None)[source]

Bases: PP_Base

DARKPCTILE = 50
PROCFMT: str | None = 'frame-cache'
RAWFMT: str | None = 'hdf5'
RAWPATH = '/imageseries'
property dark: ndarray[Any, dtype[_ScalarType_co]] | float32

build and return dark image

property oplist: list
property panel_id: str
class hexrd.preprocess.preprocessors.PP_Eiger(fname: str, omw: OmegaWedges, panel_opts: list = [], frame_start: int = 0, style: str = 'npz')[source]

Bases: PP_Base

PROCFMT: str | None = 'frame-cache'
RAWFMT: str | None = 'eiger-stream-v1'
hexrd.preprocess.preprocessors.preprocess(args: HexrdPPScript_Arguments) None[source]