nxtomo.nxobject.nxdetector#

module for handling a nxdetector

Functions

cast_and_check_array_1D(array, array_name)

Cast provided array to 1D and handle pint quantities.

check_dimensionality(expected_dimension[, ...])

Decorator to check the dimensionality of a pint.Quantity parameter.

deprecated([func, reason, replacement, ...])

Decorator that deprecates the use of a function

deprecated_warning(type_, name[, reason, ...])

Function to log a deprecation warning

docstring(origin)

Decorator to initialize the docstring from another source.

from_virtual_source_to_data_url(vs)

convert a h5py.VirtualSource to a DataUrl

get_data(file_path, data_path)

proxy to h5py_read_dataset, handling use case 'data_path' not present in the file.

get_lr_flip(transformations)

Check along all transformations for those matching a left-right flip.

get_nexus_path(version)

rtype:

NXtomo_PATH

get_quantity(file_path, data_path, default_unit)

Return the value and unit of an HDF5 dataset.

get_ud_flip(transformations)

Check along all transformations for those matching an up-down flip.

hdf5_open(filename)

Open a file as an h5py-like object.

ignore_deprecation_warning()

filter logs from 'nxtomo.DEPRECATION'

is_not(a, b, /)

Same as a is not b.

Classes

DataUrl([path, file_path, data_path, ...])

Non-mutable object to parse a string representing a resource data locator.

DetYFlipTransformation(flip[, axis_name, ...])

Convenient class to define a detector up-down flip (assuming the detector center is at (0, 0)).

DetZFlipTransformation(flip[, axis_name, ...])

Convenient class to define a detector left-right flip.

FOV(value)

Possible existing field of view.

FieldOfView

alias of FOV

FrameAppender(data, file_path, data_path, where)

ImageKey(value)

NXdetector image_key.

NXdetector([node_name, parent, ...])

NXdetectorWithUnit(default_unit[, ...])

NXobject(node_name[, parent])

NXtransformations([node_name, parent])

VDSmap(vspace, file_name, dset_name, src_space)

Defines a region in a virtual dataset mapping to part of a source dataset

VirtualSource(path_or_dataset[, name, ...])

Source definition for virtual data sets.

partial

partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords.