DataLog Viewer

Prototype of a viewer for files that can be read as a DataLog (e.g. patch-clamp data). Can currently read CSV and text files, ABF files, WCP files, and some Matlab files.

Implementation

class myokit.gui.datalog_viewer.DataLogViewer(*filenames)

Graphical interface for viewing DataLog data.

action_about()

Displays the about dialog.

action_close(index)

Called when a tab should be closed

action_license()

Displays this program’s licensing information.

action_open()

Let the user select and open a file.

closeEvent(event=None)

Called when window is closed. To force a close (and trigger this function, call self.close())

create_menu()

Creates this widget’s menu.

create_toolbar()

Creates this widget’s toolbar

load_abf_file(filename)

Loads an abf file.

load_atf_file(filename)

Loads an ATF file.

load_config()

Loads the user configuration from an ini file.

load_datalog(filename)

Loads a DataLog from csv or zip file.

load_file(filename)

Loads a data file.

load_mat_file(filename)

Loads a Matlab file.

This method requires SciPy to be installed.

load_txt_file(filename)

Loads a csv file.

load_wcp_file(filename)

Loads a wcp file.

save_config()

Saves the user configuration to an ini file.

show()

Shows this viewer.

Widgets

class myokit.gui.datalog_viewer.AbfTab(parent, abf)

A widget displaying an ABF file.

create_graph_tab(channel)

Creates a widget displaying the main data.

create_info_tab()

Creates a tab displaying information about the file.

create_protocol_tab(channel)

Creates a widget displaying a stored D/A signal.

deleteLater()

Deletes this tab (later).

class myokit.gui.datalog_viewer.AtfTab(parent, atf)

A widget displaying an AGF file.

create_graph_tab(time, key)

Creates a widget displaying a graph.

create_info_tab()

Creates a tab displaying information about the file.

deleteLater()

Deletes this tab (later).

class myokit.gui.datalog_viewer.CsvTab(parent, log, filename)

A widget displaying a CSV file.

The given log must have a time variable set.

create_graph_tab(key, data)

Creates a widget displaying the data stored under key.

deleteLater()

Deletes this tab (later).

class myokit.gui.datalog_viewer.MatTab(parent, mat, filename)

A widget displaying a MAT file.

create_graph_tab(time, data)

Creates a widget displaying a time series.

deleteLater()

Deletes this tab (later).

class myokit.gui.datalog_viewer.TxtTab(parent, data, filename)

A widget displaying a TXT file (with lots of heuristics!).

create_graph_tab(time, data)

Creates a widget displaying a time series.

deleteLater()

Deletes this tab (later).

class myokit.gui.datalog_viewer.WcpTab(parent, wcp)

A widget displaying a WCP file.

create_graph_tab(record)

Creates a widget displaying the data in record i

deleteLater()

Deletes this tab (later).