Module for analysis of SMS data from HDF5 files
Bertus van Heerden and Joshua Botha
University of Pretoria
2020
Module Contents
Classes
MainWindow
|
Class for Full SMS application that returns QMainWindow object. |
Attributes
-
main.__docformat__ = "'NumPy'"[source]
-
main.SMS_VERSION = "'0.7.7'"[source]
-
main.main_window_file[source]
-
main.logger = "'main'"[source]
-
class main.MainWindow[source]
Bases: PyQt5.QtWidgets.QMainWindow, UI_Main_Window
Class for Full SMS application that returns QMainWindow object.
This class uses a *.ui that is automatically converted to a *.py script
upon exectution.
-
threadpool[source]
-
active_threads = '[]'[source]
-
confidence_index[source]
-
settings_dialog[source]
-
settings[source]
-
intensity_controller[source]
-
lifetime_controller[source]
-
grouping_controller[source]
-
spectra_controller[source]
-
raster_scan_controller[source]
-
antibunch_controller[source]
-
filtering_controller[source]
-
treemodel[source]
-
_root_was_checked = 'False'[source]
-
part_nodes = '[]'[source]
-
part_index = '[]'[source]
-
tauparam = 'None'[source]
-
ampparam = 'None'[source]
-
shift = 'None'[source]
-
decaybg = 'None'[source]
-
irfbg = 'None'[source]
-
start = 'None'[source]
-
end = 'None'[source]
-
addopt = 'None'[source]
-
progress[source]
-
current_progress[source]
-
data_loaded = 'False'[source]
-
irf_loaded = 'False'[source]
-
current_dataset = 'None'[source]
-
current_particle = 'None'[source]
-
lock = 'None'[source]
-
after_show()[source]
-
sums_file_check() → bool[source]
-
calc_store_sums() → None[source]
Check if the all_sums.pickle file exists, and if it doesn’t creates it
-
gui_export_current()[source]
-
gui_export_selected()[source]
-
gui_export_all()[source]
-
gui_select_groups_changed(chb_changed)[source]
-
act_detect_remove_bursts_current()[source]
-
act_detect_remove_bursts_selected()[source]
-
act_detect_remove_bursts_all()[source]
-
act_remove_bursts_current()[source]
-
act_remove_bursts_selected()[source]
-
act_remove_bursts_all()[source]
-
act_restore_bursts_current()[source]
-
act_restore_bursts_selected()[source]
-
act_restore_bursts_all()[source]
-
set_bin_size(bin_size: int)[source]
-
act_open_settings_dialog()[source]
-
act_filtering_and_normalization_dialog()[source]
-
gui_group_use_roi()[source]
-
act_open_h5()[source]
Allows the user to point to a h5 file and then starts a thread that reads and loads the file.
-
act_save_selected()[source]
“ Saves selected particles into a new HDF5 file.
-
act_save_analysis()[source]
-
act_trim()[source]
Used to trim the ‘dead’ part of a trace as defined by two parameters.
-
act_switch_all()[source]
-
act_switch_selected()[source]
-
act_set_startpoint()[source]
-
set_startpoint(irf_data=None, start=None)[source]
-
add_dataset(dataset_node)[source]
-
add_node(particle_node, num)[source]
-
add_all_nodes(all_nodes)[source]
-
tree_view_clicked(model_index)[source]
-
tree_view_key_press(event)[source]
-
act_select_all(*args, **kwargs)[source]
-
act_invert_selection(*args, **kwargs)[source]
-
act_deselect_all(*args, **kwargs)[source]
-
tab_change(active_tab_index: int)[source]
-
update_int_gui()[source]
-
card_selected() → None[source]
-
selection_changed() → None[source]
-
display_data(current=None, prev=None, combocard=False, is_global_group=False) → None[source]
Displays the intensity trace and the histogram of the current particle.
Directly called by the tree signal currentChanged, thus the two arguments.
- Parameters:
current (QtCore.QModelIndex) – The index of the current selected particle as defined by QtCore.QModelIndex.
prev (QtCore.QModelIndex) – The index of the previous selected particle as defined by QtCore.QModelIndex.
combocard (bool) – True if called due to selecting other TCSPC card.
-
status_message(message: str) → None[source]
Updates the status bar with the provided message argument.
- Parameters:
message (str) – The message that is to be displayed in the status bar.
-
start_progress(max_num: int = None) → None[source]
Sets the maximum value of the progress bar before use.
reset parameter can be optionally set to False to prevent the setting of the progress bar value to 0.
- Parameters:
max_num (int) – The number of iterations or steps that the complete process is made up of.
-
set_progress(progress_value: int) → None[source]
Sets the maximum value of the progress bar before use.
reset parameter can be optionally set to False to prevent the setting of the progress bar value to 0.
- Parameters:
progress_value (int) – The number of iterations or steps that the complete process is made up of.
-
update_progress(value: int | float = None) → None[source]
Used to update the progress bar by an increment of one. If at maximum sets progress bars visibility to False
-
end_progress()[source]
-
tree2particle(identifier)[source]
Returns the particle dataset for the identifier given.
The identifier could be the number of the particle of the datasetnode value.
- Parameters:
identifier – The integer number or a datasetnode object of the particle in question.
-
tree2dataset() → smsh5.H5dataset[source]
Returns the H5dataset object of the file loaded.
- Return type:
smsh5.H5dataset
-
set_data_loaded()[source]
-
open_save_file_version_outdated()[source]
-
open_file_thread_complete(thread: threads.ProcessThread = None, irf=False) → None[source]
Is called as soon as all of the threads have finished.
-
set_export_options()[source]
-
select_all_export_options()[source]
-
select_all_plots_export_options()[source]
-
select_all_dataframes_export_options()[source]
-
open_file_error(err: Exception)[source]
-
detect_remove_bursts(mode: str = None) → None[source]
-
remove_bursts(mode: str = None, confirm: bool = True) → None[source]
-
restore_bursts(mode: str = None) → None[source]
-
run_parallel_cpa(particle)[source]
-
switching_frequency(all_selected: str = None)[source]
Calculates and exports the accumulated switching frequency of either
all the particles, or only the selected.
- Parameters:
all_selected ({'all', 'selected'}) – Possible values are ‘all’ (default) or ‘selected’.
-
get_checked()[source]
-
get_checked_nums()[source]
-
get_checked_particles()[source]
-
set_particle_check_state(particle_number: int, set_checked: bool)[source]
-
set_level_resolved()[source]
-
gui_plot_intensity_clicked(new_value)[source]
-
gui_plot_lifetime_clicked(new_value)[source]
-
gui_export(mode: str = None)[source]
-
convert_file_dialog()[source]
-
range_selection()[source]
-
reset_gui()[source]
Sets the GUI elements to enabled if it should be accessible.
-
close_file()[source]
-
error_handler(e: Exception)[source]
-
main.display_on()[source]
-
main.display_reset()[source]
-
main.main()[source]
Creates QApplication and runs MainWindow().