labcore.analysis.hvapps#

Classes

DDH5LoaderNode([path])

A node that loads data from a specified file location.

DataSelect(data_root[, size])

Handler(update_callback)

LoaderNodeBase([path])

A node that loads data.

class labcore.analysis.hvapps.DDH5LoaderNode(path: str | Path = '', *args: Any, **kwargs: Any)[source]#

Bases: LoaderNodeBase

A node that loads data from a specified file location.

the panel of the node consists of UI options for loading and pre-processing.

file_path = None#
load_data() DataDict[source]#

Load data from the file location specified

name = 'DDH5LoaderNode'#
class labcore.analysis.hvapps.DataSelect(data_root, size=15)[source]#

Bases: Viewer

DATAFILE = 'data.ddh5'#
SYM = {'bad': '😭', 'complete': '✅', 'star': '😁', 'trash': '❌'}#
data_select()[source]#
static date2label(date_tuple)[source]#
event_lock = False#
get_data_options(active_search=True, r=re.compile('.*'))[source]#
static group_data(data_list)[source]#
group_options = None#
info_panel()[source]#
static label2date(label)[source]#
name = 'DataSelect'#
search_term = None#
selected_path = None#
start()[source]#
text_input_repeater()[source]#
update_group_options(event)[source]#
class labcore.analysis.hvapps.Handler(update_callback)[source]#

Bases: FileSystemEventHandler

on_created(event)[source]#

Called when a file or directory is created.

Parameters:

event (DirCreatedEvent or FileCreatedEvent) – Event representing file/directory creation.

class labcore.analysis.hvapps.LoaderNodeBase(path=PosixPath('.'), *args: Any, **kwargs: Any)[source]#

Bases: Node

A node that loads data.

the panel of the node consists of UI options for loading and pre-processing.

Each subclass must implement LoaderNodeBase.load_data.

can_save()[source]#
display_info()[source]#
async load_and_preprocess(*events: Event) None[source]#

Call load data and perform pre-processing.

Function is triggered by clicking the “Load data” button.

load_data() DataDict[source]#

Load data. Needs to be implemented by subclasses.

Raises:

NotImplementedError – if not implemented by subclass.

name = 'LoaderNodeBase'#
on_refresh_changed()[source]#
plot_obj()[source]#

The actual plot object.

Updates on change of data_out or the selection of the plot value.

Return type:

A dedicated plotting node.

async run_auto_refresh()[source]#
save_html(*events: Event)[source]#
save_png(*events: Event)[source]#
toggle_save_buttons()[source]#