impy.viewer.widgets package

Submodules

impy.viewer.widgets.dialog module

class impy.viewer.widgets.dialog.DuplicateDialog(viewer: napari.viewer.Viewer, layer)[source]

Bases: PyQt5.QtWidgets.QDialog

This dialog is opened when an image layer is duplicated.

duplicate_current_step(layer)[source]
duplicate_sliced_layer(layer)[source]
run(*args)[source]
class impy.viewer.widgets.dialog.ImageProjectionDialog(viewer: napari.viewer.Viewer, layer)[source]

Bases: impy.viewer.widgets.dialog.ProjectionDialog

This dialog is opened when an image layer is projected.

run(*args)[source]
class impy.viewer.widgets.dialog.LabelProjectionDialog(viewer: napari.viewer.Viewer, layer)[source]

Bases: impy.viewer.widgets.dialog.ProjectionDialog

This dialog is opened when an image layer is projected.

run(*args)[source]
class impy.viewer.widgets.dialog.ProjectionDialog(viewer: napari.viewer.Viewer, layer)[source]

Bases: PyQt5.QtWidgets.QDialog

class impy.viewer.widgets.dialog.RegionPropsDialog(viewer: napari.viewer.Viewer)[source]

Bases: PyQt5.QtWidgets.QDialog

history = 'mean_intensity'
run(*args)[source]
class impy.viewer.widgets.dialog.TimeStamper(viewer: napari.viewer.Viewer, layer)[source]

Bases: PyQt5.QtWidgets.QDialog

run(*args)[source]
impy.viewer.widgets.dialog.close_anyway(func)[source]

impy.viewer.widgets.explorer module

class impy.viewer.widgets.explorer.Explorer(viewer: napari.viewer.Viewer, path: str = '')[source]

Bases: PyQt5.QtWidgets.QWidget

A Read-only explorer widget. Capable of filter, set working directory, copy path and open file in the viewer. By default QTreeView supports real time update on file change.

class impy.viewer.widgets.explorer.FileSystemModel[source]

Bases: PyQt5.QtWidgets.QFileSystemModel

File system model with tooltips.

data(self, QModelIndex, role: int = Qt.DisplayRole) Any[source]
class impy.viewer.widgets.explorer.FileTree(parent, path: str)[source]

Bases: PyQt5.QtWidgets.QTreeView

copy_path_at(index: PyQt5.QtCore.QModelIndex)[source]

Copy the absolute path of the file at index. Double quotations are included.

keyPressEvent(self, QKeyEvent)[source]
onDoubleClicked(index: PyQt5.QtCore.QModelIndex)[source]
open_path_at(index: PyQt5.QtCore.QModelIndex)[source]
rightClickContextMenu(point)[source]
property selected: PyQt5.QtCore.QModelIndex
set_filter(names: str | list[str])[source]

Apply filter with comma separated string or list of string as an input.

impy.viewer.widgets.explorer.get_time_stamp(epoch)[source]

impy.viewer.widgets.gui module

class impy.viewer.widgets.gui.FunctionCaller(viewer: napari.viewer.Viewer)[source]

Bases: magicgui.widgets.Container, Generic[magicgui.widgets._function_gui._R]

update_widget(event=None)[source]

Update the widget labels and sliders every time function is changed.

class impy.viewer.widgets.gui.RectangleEditor(viewer: napari.viewer.Viewer)[source]

Bases: magicgui.widgets.Container, Generic[magicgui.widgets._function_gui._R]

get_selected_shapes_layer()[source]
class impy.viewer.widgets.gui.Rotator(viewer: napari.viewer.Viewer)[source]

Bases: magicgui.widgets.Container, Generic[magicgui.widgets._function_gui._R]

class impy.viewer.widgets.gui.ThresholdAndLabel(viewer: napari.viewer.Viewer)[source]

Bases: magicgui.widgets.Container, Generic[magicgui.widgets._function_gui._R]

cache = {}

impy.viewer.widgets.log module

class impy.viewer.widgets.log.LoggerWidget(viewer: napari.viewer.Viewer)[source]

Bases: PyQt5.QtWidgets.QPlainTextEdit

append(text: str)

appendPlainText(self, str)

appendPlainText(self, str)[source]
flush()[source]
write(text: str)[source]

impy.viewer.widgets.plane_clip module

class impy.viewer.widgets.plane_clip.PlaneClipRange(viewer: napari.viewer.Viewer)[source]

Bases: PyQt5.QtWidgets.QWidget

connectLayer(layer: Layer)[source]
resetX()[source]
resetY()[source]
resetZ()[source]
updateX()[source]
updateY()[source]
updateZ()[source]
property xmaxPlane
property xminPlane
property ymaxPlane
property yminPlane
property zmaxPlane
property zminPlane

impy.viewer.widgets.results module

class impy.viewer.widgets.results.ResultStackView(viewer: napari.viewer.Viewer)[source]

Bases: PyQt5.QtWidgets.QWidget

MAX_ROW_NUMBER = 50
append(result)[source]
clear()[source]
pop(i: int = - 1)[source]

impy.viewer.widgets.table module

class impy.viewer.widgets.table.FilterWidget(parent)[source]

Bases: PyQt5.QtWidgets.QWidget

class impy.viewer.widgets.table.PlotSetting(table: impy.viewer.widgets.table.TableWidget)[source]

Bases: PyQt5.QtWidgets.QDialog

add_widgets()[source]
apply()[source]
change_setting()[source]
ok()[source]
class impy.viewer.widgets.table.TableWidget(viewer: napari.Viewer, df: np.ndarray | pd.DataFrame | dict, columns=None, name=None)[source]

Bases: PyQt5.QtWidgets.QMainWindow

[Table][Data][Plot]

(table)

(figure canvas)

add_filter()[source]
add_point(data='cursor position', size=None, face_color=None, edge_color=None, properties=None, **kwargs)[source]

Add point in a layer and append its property to the end of the table. They are linked to each other.

add_shape(data, shape_type='rectangle', face_color=None, edge_color=None, properties=None, **kwargs)[source]

Add point in a layer and append its property to the end of the table. They are linked to each other.

append(data=None)

Append a row on the bottom side.

appendColumn(data=None)[source]

Append a column on the right side. Also can be used to add 1x1 item to an empty table.

appendRow(data=None)[source]

Append a row on the bottom side.

change_plot_setting()[source]
copy_as_dataframe(selected=False)[source]

Send table contents to clipboard.

Parameters

selected (bool, default is False) – If True, only selected range will be send to clipboard.

delete_selected_columns()[source]

Delete all the columns that contain selected cells.

delete_selected_rows()[source]

Delete all the rows that contain selected cells.

delete_self()[source]

Remove from the dock widget list of the parent viewer.

filterRows(column_index: int, value: str)[source]
property header: PyQt5.QtWidgets.QHeaderView
property header_as_tuple: tuple
header_to_row()[source]

Convert table header to the top row.

hist()[source]
property linked_layer
n_table = 0
newRow(data)[source]

Add a new row to an empty table.

plot()[source]
restore_linked_layer()[source]

Add linked layer to the viewer again, if it has deleted from the layer list.

save_as_csv()[source]
set_header(i: int, name: Any)[source]
set_header_and_properties(i: int, name: Any)[source]
store_as_dataframe(selected=False)[source]

Send table contents to Results widget.

Parameters

selected (bool, default is False) – If True, only selected range will be send to results.

to_dataframe(selected=False) pd.DataFrame[source]

Convert table to pandas.DataFrame.

Parameters

selected (bool, default is False) – If True, only selected range will be converted.

impy.viewer.widgets.table.read_csv(viewer: napari.viewer.Viewer, path)[source]

impy.viewer.widgets.textedit module

class impy.viewer.widgets.textedit.Regex[source]

Bases: PyQt5.QtCore.QRegularExpression

defineFormat(fcolor=None, bcolor=None, weight=None, underline=False, strikeout=False)[source]
class impy.viewer.widgets.textedit.TxtFileWidget(viewer: napari.viewer.Viewer, title: Optional[str] = None)[source]

Bases: PyQt5.QtWidgets.QWidget

A read-only text viewer widget with JSON-like highlight. Capable of search lines.

change_wrap_mode()[source]
delete_self()[source]
initText(text: str)[source]
setText(text: str)[source]
class impy.viewer.widgets.textedit.TxtViewer(parent, title: Optional[str] = None)[source]

Bases: PyQt5.QtWidgets.QPlainTextEdit

class impy.viewer.widgets.textedit.WordHighlighter(doc)[source]

Bases: PyQt5.QtGui.QSyntaxHighlighter

appendRule(regex: str, **kwargs)[source]
highlightBlock(self, str)[source]
property nrule
popRule(i: int)[source]
impy.viewer.widgets.textedit.read_txt(viewer: napari.viewer.Viewer, path: str)[source]

Module contents