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_component_spec(filename)

Create a location spec for all components of a class in a NeXus file.

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)

full_time_interval()

Select all neutron pulses in the data.

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_all_nexus_components(location, nx_class)

Load all NeXus components of one class from one entry a file.

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_crystal()

nx_class_for_detector()

nx_class_for_disk_chopper()

nx_class_for_monitor()

nx_class_for_sample()

nx_class_for_source()

parse_analyzers(analyzers)

Convert the NeXus representation of an analyzer to ours.

parse_disk_choppers(choppers)

Convert the NeXus representation of a chopper to ours.

to_transformation(chain, interval)

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.