hexrd.imageseries.load.function module

Adapter class for a custom function that takes an int as an argument and returns a 2D numpy array.

class hexrd.imageseries.load.function.FunctionImageSeriesAdapter(fname, **kwargs)[source]

Bases: ImageSeriesAdapter

Collection of Images in numpy array

Parameters

fname: None

should be None

func: a function that returns a numpy array for a index num_frames: the number of frames provided by the function metadata: dict (optional)

the metadata dictionary

property dtype
format = 'function'
property metadata

Image sequence metadata

property shape