pwem.viewers.mdviewer.sqlite_dao module
- class pwem.viewers.mdviewer.sqlite_dao.ScipionColumn(name, renderer=None, callback=None)[source]
Bases:
Column
- class pwem.viewers.mdviewer.sqlite_dao.ScipionSetsDAO(sqliteFile)[source]
Bases:
IDAO
Class to serve data from scipion sets files (sqlite).
- composeDataTables(tablesNames)[source]
This method is used to generate a dictionary with the principal tables mapping the dependencies with other tables
- fillPage(page, actualColumn: str, orderAsc=True)[source]
Read the given table from the sqlite and fill the page(add rows)
- fillTable(table: ScipionTable, objectManager)[source]
Create the table structure (columns) and set the table alias
- generateTableActions(table, objectManager)[source]
Generate actions for a given table in order to create subsets
- getColumnsValues(tableName, columns, xAxis, selection, limit, useSelection, reverse=True)[source]
Get the values of the selected columns in order to plot them
- getSelectedRangeRowsIds(tableName, startRow, numberOfRows, column, reverse=True)[source]
Return a range of rows starting at ‘startRow’ an amount of ‘numberOfRows’
- getTableRow(tableName, rowIndex, **kwargs)[source]
Get a given row by index. Extra args are passed to iterTable.
- getTableWithAdditionalInfo()[source]
Return a tuple with the table that need to show additional info and the column that we need to show
- iterTable(tableName, **kwargs)[source]
Method to iterate over the table’s rows :param tableName: the name of the table :param kwargs:
limit: integer value to limit the number of elements start: start from a given element classes: read column names from a ‘classes’ table orderBy: clause to sort given a column name mode: sort direction ASC or DESC