3. Module Documentation
This is the auto generated module documentation and hence of no deeper use, if you just want to use the ArrayViewer.
3.1. Viewer module
Base Script of the Array Viewer
-
class
ArrayViewer.Viewer.ViewerWindow(application=None, config=None, parent=None)[source]
The main window of the array viewer.
-
info_msg(text, warn_level)[source]
Show an info Message.
-
keyPressEvent(ev)[source]
Catch keyPressEvents for [Delete] and [Ctrl]+[C].
-
load_files(fnames)[source]
Load files to the tree. If key already exists, show a Warning.
-
on_done_loading(data, key)[source]
Set the data into the global _data list once loaded.
-
pop(key)[source]
Returns the current data and removes it from the dict.
-
transpose_data(new_order)[source]
Transpose dimensions of the data.
-
ArrayViewer.Viewer.main()[source]
Main Function.
3.2. Data module
Data Loader for the ArrayViewer.
-
class
ArrayViewer.Data.Loader(parent=None)[source]
Seperate Loader to simultaneously load data.
3.3. Charts module
GraphWidget and ReshapeDialog for the ArrayViewer
-
class
ArrayViewer.Charts.GraphWidget(parent=None)[source]
Draws the data graph.
-
clear()[source]
Clear the figure.
-
colorbar(minmax=None)[source]
Add a colorbar to the graph or remove it, if it is existing.
-
colormap(mapname=None)[source]
Replace colormap with the given one.
-
figure()[source]
Return the local figure variable.
-
has_opr()[source]
Check if the operation is None.
-
renewPlot(data, s, scalDims, ui)[source]
Draw given data.
-
set_operation(operation='None')[source]
Set an operation to be performed on click on a dimension.
-
set_oprdim(value)[source]
Set the operation dimension.
-
toggle_colorbar()[source]
Toggle the state of the colorbar
-
class
ArrayViewer.Charts.NewDataDialog(parent=None)[source]
A Dialog for Creating new Data.
-
new_data(data, cutout)[source]
Generate New Data (maybe using the currently selected array).
-
class
ArrayViewer.Charts.ReshapeDialog(parent=None)[source]
A Dialog for Reshaping the Array.
-
reshape_array(data)[source]
Reshape the currently selected array.
3.4. Slider module
# Create a custom Slider with minimum and maximum for the color values.
# Author: Alex Schwarz <alex.schwarz@informatik.tu-chemnitz.de>
-
class
ArrayViewer.Slider.rangeSlider(parent=None, minmax=(0, 1))[source]
Combination of two sliders that return a range tuple
-
print_val()[source]
Prints the tuple of the current value of both sliders
-
set_enabled(status)[source]
Enable/Disable the slider.
-
value()[source]
Returns a tuple of the current value of both sliders