SQLitePeakDBLoader

class SQLitePeakDBLoader(settings: Optional[dict] = None)

Bases: SQLiteDBLoader

Subclass of MetaDatabaseLoader for reading and querying SQLite database files.

Provides functionality to load metadata, event data, and other relevant structures from a structured SQLite database generated by Poriscope.

Public Methods

SQLitePeakDBLoader.get_plot_features(experiment: int, channel: int, index: int) Tuple[List[float] | None, List[float] | None, List[Tuple[float, float]] | None, List[str] | None, List[str] | None, List[str] | None]

Get a list of horizontal and vertical lines and associated labels to overlay on the graph generated by construct_fitted_event()

Parameters:
  • experiment (int) – get only events from this experiment

  • channel (int) – analyze only events from this channel

  • index (int) – the index of the target event

Returns:

a list of x locations to plot vertical lines and a list of y locations to plot horizontal lines, list of tuples to plot little x’s, labels for the vertical lines, labels for the horizontal lines, labels for x’s. Must be lists of equal length, or None

Return type:

Tuple[Optional[List[float]], Optional[List[float]], Optional[List[Tuple[float, float]]], Optional[List[str]], Optional[List[str]], Optional[List[str]]]

Raises:

RuntimeError – if fitting is not complete yet

Private Methods

(none)