ess.reduce.nexus.workflow#

Workflow and workflow components for interacting with NeXus files.

Module Attributes

origin

The origin, used as default sample position.

no_offset

Offset that does not change the position.

Functions

GenericNeXusWorkflow(*[, run_types, ...])

Generic workflow for loading detector and monitor data from a NeXus file.

LoadDetectorWorkflow()

Generic workflow for loading detector data from a NeXus file.

LoadMonitorWorkflow()

Generic workflow for loading monitor data from a NeXus file.

all_pulses()

Select all neutron pulses in the data.

assemble_beamline(detector, source_position, ...)

Add beamline information (gravity vector, source- and sample-position) to detector.

assemble_detector_data(detector, event_data)

Assemble a detector data array with event data.

assemble_monitor_data(monitor, data)

Assemble a monitor data array with event data.

component_spec_by_name(filename, name)

Create a location spec for a component group in a NeXus file.

compute_position(transformation)

Compute the position of a component from a transformation matrix.

data_by_name(filename, name, selection)

Create a location spec for monitor or detector data in a NeXus file.

file_path_to_file_spec(filename, preopen)

get_calibrated_detector(detector, *, ...)

Extract the data array corresponding to a detector's signal field.

get_calibrated_monitor(monitor, offset, ...)

Extract the data array corresponding to a monitor's signal field.

get_transformation_chain(detector)

Extract the transformation chain from a NeXus detector group.

gravity_vector_neg_y()

Gravity vector for default instrument coordinate system where y is up.

load_nexus_component(location, nx_class)

Load a NeXus component group from a file.

load_nexus_data(location)

Load event or histogram data from a NeXus detector group.

load_nexus_sample(location)

Load a NeXus sample group from a file.

no_detector_position_offset()

no_monitor_position_offset()

nx_class_for_detector()

nx_class_for_monitor()

nx_class_for_sample()

nx_class_for_source()

to_transformation(chain)

Convert transformation chain into a single transformation matrix.

unique_component_spec(filename)

Create a location spec for a unique component group in a NeXus file.