pyworkflow.em.protocol.protocol_import.micrographs module

class pyworkflow.em.protocol.protocol_import.micrographs.ProtImportMicBase(**kwargs)[source]

Bases: pyworkflow.em.protocol.protocol_import.images.ProtImportImages

Just to have a base class to both ProtImportMicrographs and ProtImportMovies

getBlacklistedItems()[source]
getItemsToBlacklistFromFile()[source]
isBlacklisted(fileName)[source]

Overwrite in subclasses

loadAcquisitionInfo()[source]

Return a proper acquistionInfo (dict) or an error message (str).

setSamplingRate(micSet)[source]

Set the sampling rate to the given set.

class pyworkflow.em.protocol.protocol_import.micrographs.ProtImportMicrographs(**kwargs)[source]

Bases: pyworkflow.em.protocol.protocol_import.micrographs.ProtImportMicBase

Protocol to import a set of micrographs to the project

IMPORT_FROM_EMX = 1
IMPORT_FROM_SCIPION = 3
IMPORT_FROM_XMIPP3 = 2
getImportClass()[source]

Return the class in charge of importing the files.

importMicrographsStep(importFrom, *args)[source]
class pyworkflow.em.protocol.protocol_import.micrographs.ProtImportMovies(**kwargs)[source]

Bases: pyworkflow.em.protocol.protocol_import.micrographs.ProtImportMicBase

Protocol to import a set of movies (from direct detector cameras) to the project.

ignoreCopy(source, dest)[source]
iterNewInputFiles()[source]

In the case of importing movies, we want to override this method for the case when input are individual frames and we want to create movie stacks before importing. The frames pattern should contains a part delimited by $. The id expression with # is not supported for simplicity.

setSamplingRate(movieSet)[source]

Set the sampling rate to the given set.