8.5.3.1. pymodaq_gui.h5modules.browsing module
Created the 15/11/2022
@author: Sebastien Weber
- class pymodaq_gui.h5modules.browsing.H5Browser(parent, h5file=None, h5file_path=None, backend='h5py', swmr=False)[source]
Bases:
CustomAppApp used to explore h5 files, plot and export subdatas
- Parameters:
parent (
QMainWindow) – either a QWidget or a QMainWindowh5file (
h5file instance) – exact type depends on the backendh5file_path (
strorPath) – if specified load the corresponding file, otherwise open a select file dialogbackend (
str) – either ‘tables, ‘h5py’ or ‘h5pyd’swmr (
bool) – if True, open the file in SWMR reading mode (h5py backend only)
See also
H5Backend,H5BackendMethods
add_comments(status[, comment])Add comments to a node
Check version of PyMoDAQ to assert if file is compatible or not with the current version of the Browser
Opens a dialog to export data
Get the node path of the currently selected node in the UI
Refresh the file view to show newly written data.
setup_menus_and_toolbars(menubar)show_h5_data(item[, with_bkg, plot_all])add_log
data_node_signal
get_node_and_plot
load_file
quit_fun
save_file
show_h5_attributes
show_pixmaps
status_signal
- add_comments(status, comment='')[source]
Add comments to a node
- Parameters:
See also
current_node_path
- check_version()[source]
Check version of PyMoDAQ to assert if file is compatible or not with the current version of the Browser
- populate_tree()[source]
- Init the ui-tree and store data into calling the h5_tree_to_Qtree convertor method
See also
h5tree_to_QTree,update_status
- refresh_file()[source]
Refresh the file view to show newly written data.
In SWMR reader mode the h5py datasets are refreshed in-place so that new data written by the SWMR writer becomes visible. In non-SWMR mode the file is closed and reopened to pick up external changes.
The tree is then repopulated and expanded.
- class pymodaq_gui.h5modules.browsing.View(widget, settings_tree, settings_attributes_tree)[source]
Bases:
QObject- Attributes:
- pixmap_widget
- text_list
- viewer_widget
Methods
add_actions
add_base_item
add_widget_to_tree
clear
current_node_path
item_clicked_sig
item_double_clicked_sig
setup_ui
- h5file_tree: TreeLayout
- property pixmap_widget
- property text_list
- property viewer_widget