pwem.protocols.protocol_import.micrographs module

class pwem.protocols.protocol_import.micrographs.ImportMicsOutput(value)[source]

Bases: Enum

An enumeration.

outputMicrographs = <class 'pwem.objects.data.SetOfMicrographs'>
class pwem.protocols.protocol_import.micrographs.ImportMoviesOutput(value)[source]

Bases: Enum

An enumeration.

outputMovies = <class 'pwem.objects.data.SetOfMovies'>
class pwem.protocols.protocol_import.micrographs.ProtImportMicBase(**kwargs)[source]

Bases: 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 acquisitionInfo (dict) or an error message (str).

setSamplingRate(micSet)[source]

Set the sampling rate to the given set.

class pwem.protocols.protocol_import.micrographs.ProtImportMicrographs(**kwargs)[source]

Bases: 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 pwem.protocols.protocol_import.micrographs.ProtImportMovies(**kwargs)[source]

Bases: ProtImportMicBase

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

getDark()[source]
getGain()[source]
getGainOrDark(path)[source]
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 contain a part delimited by $. The id expression with # is not supported for simplicity.

setSamplingRate(movieSet)[source]

Set the sampling rate to the given set.