darfix.io.utils#

Functions

advancement_display(ncurrent, ntotal[, ...])

Call in a loop to create terminal progress bar @params: ncurrent - Required : current N (Int) ntotal - Required : total expected N (Int) prefix - Optional : prefix string (Str) suffix - Optional : suffix string (Str) decimals - Optional : positive number of decimals in percent complete (Int) length - Optional : character length of bar (Int) fill - Optional : bar fill character (Str) left - Optional : bar fill character (Str)

assert_string(s, enums)

create_nxdata_dict(signal, signal_name[, ...])

read_components(h5_file)

Read a stack of components and its parameters from a Nexus file.

write_components(h5_file, entry, dimensions, ...)

Write a stack of components and its parameters into .h5

write_maps(h5_file, list_of_maps, ...[, ...])

Write a stack of components and its parameters into .h5