xpdan.pipelines package

Submodules

xpdan.pipelines.main module

xpdan.pipelines.main.clear_comp(source, iq_comp, **kwargs)[source]
xpdan.pipelines.main.clear_geo_gen(source, geometry_img_shape, **kwargs)[source]
xpdan.pipelines.main.save_cal(start_timestamp, gen_geo_cal, **kwargs)[source]
xpdan.pipelines.main.start_gen(raw_source, image_names=['pe1_image', 'pe2_image', 'pe3_image'], db=<databroker._core.Broker object>, calibration_md_folder=None, **kwargs)[source]
Parameters
  • raw_source

  • image_name

  • db (databroker.Broker) – The databroker to use

  • calibration_md_folder

  • kwargs

xpdan.pipelines.pipeline_utils module

class xpdan.pipelines.pipeline_utils.Filler(db)[source]

Bases: bluesky.callbacks.core.CallbackBase

Fill events without provenence

descriptor(docs)[source]
event(docs)[source]
start(docs)[source]
stop(docs)[source]
xpdan.pipelines.pipeline_utils.clear_combine_latest(node, position=None)[source]
xpdan.pipelines.pipeline_utils.dark_template_func(timestamp, template)[source]

Format template for dark images

Parameters
  • timestamp (float) – The time in unix epoch

  • template (str) – The string to be formatted

Returns

Return type

str

xpdan.pipelines.pipeline_utils.if_calibration(start)[source]
xpdan.pipelines.pipeline_utils.if_dark(doc)[source]
xpdan.pipelines.pipeline_utils.if_not_calibration(doc)[source]
xpdan.pipelines.pipeline_utils.if_query_results(n_hdrs)[source]
xpdan.pipelines.pipeline_utils.templater1_func(doc, template)[source]

format base string with data from experiment, sample_name, folder_tag

xpdan.pipelines.pipeline_utils.templater2_func(doc, template, aux=None, short_aux=None)[source]

format with auxiliary and time

xpdan.pipelines.pipeline_utils.templater3_func(template, analysis_stage='raw', ext='.tiff')[source]

xpdan.pipelines.save_tiff module