tomoscan.esrf.scan.utils#

module dedicated to esrf scans utils

Functions

check_grp_is_valid(scans)

check_possible_issue_with_rlimit(url[, ...])

check that the provided url does not contain more external file than (ulimit - delta_ulimit).

copy_h5_dict_darks_to(scan, darks_url[, ...])

param TomwerScanBase scan

target to copy darks

copy_h5_dict_flats_to(scan, flats_url[, ...])

param TomwerScanBase scan

target to copy darks

cwd_context([new_cwd])

dataset_has_broken_vds(url[, raise_error, ...])

check that the provided url is not a VDS with broken links.

dump_info_file(file_path, tomo_n, ...)

extract_urls_from_edf(file_, start_index[, ...])

return one DataUrl for each frame contain in file_

from_absolute_reduced_frames_to_relative(...)

from_bliss_original_file_to_raw(...)

convert NXtomo 'bliss_original_files' to drac raw parameter (folder containing the raw) without some possible noise added by 'realpath' like '/mnt/multipath-shares' or '/gpfs/easy'

from_relative_reduced_frames_to_absolute(...)

from_sequences_to_grps(scans)

rtype

tuple

get_compacted_dataslices(urls[, ...])

Regroup urls to get the data more efficiently.

get_data(url)

get_datasets_linked_to_vds(url)

Return set([file-path, data_path]) linked to the provided url

get_files_from_pattern(file_pattern, ...)

return: all files using a {pattern} to store the index.

get_n_series(image_key_values, image_key_type)

Return the number of series of an image_key.

get_parameters_frm_par_or_info(file_)

Create a dictionary from the file with the information name as keys and their values as values

get_series_slice(image_key_values, ...)

return the DataUrl corresponding to the to the serie at series_index for the type of image_key_type.

get_unique_files_linked(url)

Return the list of unique files linked to the DataUrl without depth limitation

grp_is_complete(scans)

rtype

bool