pile_viewer

class m_float(x=0, /)[source]
make_chunks(items)[source]

Split a list of integers into sublists of consecutive elements.

class deg_float(x=0, /)[source]
class sector_int[source]
class ViewMode(value)[source]

An enumeration.

class TimeScaler[source]

Undocumented.

make_scale(data_range)[source]

Get nice minimum, maximum and increment for given data range.

Returns (minimum, maximum, increment) or (maximum, minimum, -increment), depending on whether data_range is (data_min, data_max) or (data_max, data_min). If override_mode is defined, the mode attribute is temporarily overridden by the given value.

class TimeAx(*args)[source]

Undocumented.

exception PileViewerMainException[source]
class PileViewerMenuBar[source]
class PileViewerMenu[source]
class PileViewerMain(pile, ntracks_shown_max, panel_parent, *args, menu=None)
dragEnterEvent(self, QDragEnterEvent)
drawit(p, printmode=False, w=None, h=None)

This performs the actual drawing.

dropEvent(self, QDropEvent)
event(self, QEvent) bool
keyPressEvent(self, QKeyEvent)
mouseDoubleClickEvent(self, QMouseEvent)
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
paintEvent(paint_ev)

Called by QT whenever widget needs to be painted.

read_events(fn=None)

Open QFileDialog to open, read and add pyrocko.model.Event instances and their marker representation to the pile viewer.

read_markers(fn=None)

Open QFileDialog to open, read and add markers to the pile viewer.

remove_marker(marker)

Remove a marker from the PileViewer.

Parameters

markerMarker (or subclass) instance

remove_markers(markers)

Remove a list of markers from the PileViewer.

Parameters

markers – list of Marker (or subclass) instances

set_selected_markers(markers)

Set a list of markers selected

Parameters

markers – list of markers

wheelEvent(self, QWheelEvent)
GLPileViewerMain

alias of pyrocko.gui.pile_viewer.MakePileViewerMainClass.<locals>.PileViewerMain

class LineEditWithAbort[source]
keyPressEvent(self, QKeyEvent)[source]
class PileViewer(pile, ntracks_shown_max=20, marker_editor_sortable=True, use_opengl=None, panel_parent=None, *args)[source]

PileViewerMain + Controls + Inputline

inputline_aborted()[source]

Hide the input line.

save_inputline_history()[source]

Save input line history to “$HOME/.pyrocko/.snuffler_history.pf”

load_inputline_history()[source]

Load input line history from “$HOME/.pyrocko/.snuffler_history.pf”

step_through_history(ud=1)[source]

Step through input line history and set the input line text.