lib.Qutilities module

lib.Qutilities.create_folder_if_not_exists(folder_name)[source]
lib.Qutilities.do_gif(input_folder, N, filename, output='animation.gif')[source]
lib.Qutilities.find_file(filename, verbosity=1)[source]

find the full path to the file given the filename It could be a dictionary, or a data, or calibration file.

We look first of all for the name, as given, which could be an absolute path We then look in the current working directory

We also look in directories that have been defined in BASH environment variables

Finally, we look in the package directory for dictionary, or data (including calfiles)

we return the path name of the file that was found Otherwise we print a “not found” error, and return None

lib.Qutilities.join_data(comm, data)[source]
lib.Qutilities.join_toward_rank(comm, data, target_rank)[source]
lib.Qutilities.progress_bar(n, info='')[source]

Return a default progress bar.

Example

>>> import time
>>> n = 10
>>> bar = progress_bar(n, 'LOOP')
>>> for i in range(n):
...     time.sleep(1)
...     bar.update()
lib.Qutilities.split_data(comm, theta)[source]