thread_tasks
Module Contents
Classes
A QRunnable class to create a worker thread for opening h5 file. |
|
Functions
|
Attributes
- class thread_tasks.OpenFile(file_path: str, is_irf: bool = False, tmin=None, progress_tracker: processes.ProgressTracker = None)[source]
A QRunnable class to create a worker thread for opening h5 file.
- open_h5(feedback_queue: multiprocessing.JoinableQueue) smsh5.H5dataset[source]
Read the selected h5 file and populates the tree on the gui with the file and the particles.
Accepts a function that will be used to indicate the current progress.
As this function is designed to be called from a thread other than the main one, no GUI code should be called here.
- Parameters:
fname (str) – Path name to h5 file.
feedback_queue (multiprocessing.JoinableQueue) – Queue to send feedback to ProcessThread
- open_irf(feedback_queue: multiprocessing.JoinableQueue) None[source]
Read the selected h5 file and populates the tree on the gui with the file and the particles.
Accepts a function that will be used to indicate the current progress.
As this function is designed to be called from a thread other than the main one, no GUI code should be called here.
- Parameters:
fname (str) – Path name to h5 file.
- load_data(fname: str, sig_fb: processes.PassSigFeedback, prog_fb: processes.ProcessProgFeedback)[source]
- class thread_tasks.BinAll(dataset: smsh5.H5dataset, bin_size: float, progress_tracker: processes.ProgressTracker = None)[source]
- thread_tasks.bin_all(dataset: smsh5.H5dataset, bin_size: float, for_irf: bool = False, sig_fb: processes.PassSigFeedback = None, prog_fb: processes.ProcessProgFeedback = None) None[source]
- Parameters:
bin_size
dataset
sig_fb
prog_fb