pwem.viewers.mdviewer.star_dao module

class pwem.viewers.mdviewer.star_dao.StarFile(inputFile)[source]

Bases: IDAO

Class to handle STAR or XMD files.

close()[source]
fillPage(page, actualColumn, orderAsc)[source]

Fill a page taking into account the page number and size. Variables actualColumn and orderAsc control the table order

fillTable(table, objectManager)[source]

Create the table structure

classmethod getCompatibleFileTypes()[source]

Return a list of compatible extension of files

getSelectedRangeRowsIds(tableName, startRow, numberOfRows, column, reverse=True)[source]

Return a range of rows starting at ‘startRow’ an amount of ‘numberOfRows’

getTableRowCount(tableName)[source]

Get the number of rows of a given table

getTableWithAdditionalInfo()[source]

Return a tuple with the table that need to show additional info and the column that we need to show

getTables()[source]

Return all the names of the data_ blocks found in the file and fill all labels and data of every table name

sort(tableName, column, sortAsc=True)[source]

Sort the table in place using the provided column. :param column is a number, it is the index of one column.