thread_tasks

Module Contents

Classes

OpenFile

A QRunnable class to create a worker thread for opening h5 file.

BinAll

Functions

bin_all(→ None)

Attributes

logger

thread_tasks.logger = "'thread_tasks'"[source]
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.

property file_path: str[source]
property irf: bool[source]
property tmin[source]
_file_path[source]
_is_irf = 'False'[source]
_tmin = 'None'[source]
progress_tracker = 'None'[source]
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]
dataset[source]
bin_size[source]
bin_all_func[source]
progress_tracker = 'None'[source]
run_bin_all(feedback_queue: multiprocessing.JoinableQueue)[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