tomo.protocols.protocol_ts_import module

class tomo.protocols.protocol_ts_import.ProtImportTs(**kwargs)[source]

Bases: tomo.protocols.protocol_ts_import.ProtImportTsBase

class tomo.protocols.protocol_ts_import.ProtImportTsBase(**kwargs)[source]

Bases: pwem.protocols.protocol_import.base.ProtImport, tomo.protocols.protocol_base.ProtTomoBase

Base class for Tilt-Series and Tilt-SeriesMovies import protocols.

ANGLES_FROM_FILENAME = 'Filename'
ANGLES_FROM_HEADER = 'Header'
ANGLES_FROM_MDOC = 'Mdoc'
ANGLES_FROM_RANGE = 'Range'
ANGLES_FROM_TLT = 'Tlt'
IMPORT_COPY_FILES = 0
IMPORT_FROM_FILES = 0
fileModified(fileName, fileTimeout)[source]

Check if the fileName modification time is less than a given timeout. Params:

fileName: input filename that will be checked. fileTimeout: timeout
getActions()[source]

This method will allow that the ‘Stop import’ action to appears in the GUI when the user right-click in the protocol import box. It will allow a user to manually stop the streaming.

getMatchingFiles(fileTimeOut=None)[source]

Return an ordered dict with TiltSeries found in the files as key and a list of all tilt images of that series as value.

importStep()[source]

Copy images matching the filename pattern Register other parameters.

isBlacklisted(fileName)[source]

Overwrite in subclasses

isInStreaming()[source]
stopImport()[source]

Since the actual protocol that is running is in a different process that the one that this method will be invoked from the GUI, we will use a simple mechanism to place an special file to stop the streaming.

streamingHasFinished()[source]
classmethod worksInStreaming()[source]
class tomo.protocols.protocol_ts_import.ProtImportTsMovies(**kwargs)[source]

Bases: tomo.protocols.protocol_ts_import.ProtImportTsBase