本文整理匯總了Python中pyworkflow.tests.DataSet類的典型用法代碼示例。如果您正苦於以下問題:Python DataSet類的具體用法?Python DataSet怎麽用?Python DataSet使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了DataSet類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: setUpClass
def setUpClass(cls):
setupTestProject(cls)
cls.dsXmipp = DataSet.getDataSet('xmipp_tutorial')
cls.dsGrigorieff = DataSet.getDataSet('grigorieff')
# First, import a set of micrographs that will be used
# from all ctf test cases
cls.protImport = cls.newProtocol(ProtImportMicrographs,
filesPath=cls.dsXmipp.getFile('allMics'),
samplingRate=1.237, voltage=300)
cls.launchProtocol(cls.protImport)
示例2: setUpClass
def setUpClass(cls):
"""Prepare the data that we will use later on."""
print "\n", greenStr(" Set Up - Collect data ".center(75, '-'))
setupTestProject(cls) # defined in BaseTest, creates cls.proj
cls.dataset_xmipp = DataSet.getDataSet('xmipp_tutorial')
cls.dataset_mda = DataSet.getDataSet('mda')
cls.dataset_ribo = DataSet.getDataSet('ribo_movies')
#
# Imports
#
new = cls.proj.newProtocol # short notation
launch = cls.proj.launchProtocol
# Micrographs
print magentaStr("\n==> Importing data - micrographs")
p_imp_micros = new(ProtImportMicrographs,
filesPath=cls.dataset_xmipp.getFile('allMics'),
samplingRate=1.237, voltage=300)
launch(p_imp_micros, wait=True)
cls.micros = p_imp_micros.outputMicrographs
# Volumes
print magentaStr("\n==> Importing data - volumes")
p_imp_volumes = new(ProtImportVolumes,
filesPath=cls.dataset_xmipp.getFile('volumes'),
samplingRate=9.896)
launch(p_imp_volumes, wait=True)
cls.vols = p_imp_volumes.outputVolumes
# Movies
print magentaStr("\n==> Importing data - movies")
p_imp_movies = new(ProtImportMovies,
filesPath=cls.dataset_ribo.getFile('movies'),
samplingRate=2.37, magnification=59000,
voltage=300, sphericalAberration=2.0)
launch(p_imp_movies, wait=True)
cls.movies = p_imp_movies.outputMovies
# Particles
print magentaStr("\n==> Importing data - particles")
p_imp_particles = new(ProtImportParticles,
filesPath=cls.dataset_mda.getFile('particles'),
samplingRate=3.5)
launch(p_imp_particles, wait=True)
cls.particles = p_imp_particles.outputParticles
示例3: setUpClass
def setUpClass(cls):
setupTestProject(cls)
cls.ds = DataSet.getDataSet('movies')
cls.importThread = threading.Thread(target=cls._createInputLinks)
cls.importThread.start()
# Wait until the first link is created
time.sleep(5)
示例4: setUpClass
def setUpClass(cls):
setupTestProject(cls)
cls.dsRelion = DataSet.getDataSet('relion_tutorial')
cls.protImport1 = cls.newProtocol(ProtImportVolumes,
filesPath=cls.dsRelion.getFile('volumes/reference_rotated.vol'),
samplingRate=1.0)
cls.launchProtocol(cls.protImport1)
cls.protImport2 = cls.newProtocol(ProtImportVolumes,
filesPath=cls.dsRelion.getFile('volumes/reference.mrc'),
samplingRate=1.0)
cls.launchProtocol(cls.protImport2)
示例5: setUpClass
def setUpClass(cls):
setupTestProject(cls)
cls.dataSet = DataSet.getDataSet('xmipp_tutorial')
#
# Imports
#
print magentaStr("\n==> Importing data - Input data")
new = cls.proj.newProtocol # short notation
launch = cls.proj.launchProtocol
# Volumes
print magentaStr("\nImporting Volumes:")
pImpVolume = new(ProtImportVolumes, samplingRate=1,
filesPath=cls.dataSet.getFile('vol2'))
launch(pImpVolume, wait=True)
# volume.vol
cls.inputVol = pImpVolume.outputVolume
pImpVolume2 = new(ProtImportVolumes, samplingRate=1,
filesPath=cls.dataSet.getFile('vol1'))
launch(pImpVolume2, wait=True)
cls.inputVol2 = pImpVolume2.outputVolume
# References
print magentaStr("\nImporting References:")
pImpRef = new(ProtImportVolumes, samplingRate=1,
filesPath=cls.dataSet.getFile('vol3'))
launch(pImpRef, wait=True)
# reference.vol
cls.inputRef = pImpRef.outputVolume
pImpRef2 = new(ProtImportVolumes, samplingRate=1,
filesPath=cls.dataSet.getFile('vol1'))
launch(pImpRef2, wait=True)
cls.inputRef2 = pImpRef2.outputVolume
# Masks
print magentaStr("\nImporting Mask:")
pImpMask = new(ProtImportMask,
maskPath=cls.dataSet.getFile('mask3d'),
samplingRate=1)
launch(pImpMask, wait=True)
cls.mask = pImpMask.outputMask
示例6: setUpClass
def setUpClass(cls):
setupTestProject(cls)
cls.dsXmipp = DataSet.getDataSet('xmipp_tutorial')
cls.dsGrigorieff = DataSet.getDataSet('grigorieff')
示例7: setData
def setData(cls, dataProject='resmap'):
cls.dataset = DataSet.getDataSet(dataProject)
cls.map3D = cls.dataset.getFile('betagal')
cls.half1 = cls.dataset.getFile('betagal_half1')
cls.half2 = cls.dataset.getFile('betagal_half2')
cls.mask = cls.dataset.getFile('betagal_mask')
示例8: setUpClass
def setUpClass(cls):
setupTestProject(cls)
cls.dsRelion = DataSet.getDataSet("relion_tutorial")
# Import only once for all tests
cls.protImport = cls.runImportFromScipion()
示例9: setData
def setData(cls, dataProject='resmap'):
cls.dataset = DataSet.getDataSet(dataProject)
cls.map3D = cls.dataset.getFile('betagal')
cls.setVols = cls.dataset.getFile('*.mrc')
cls.dsParticles = DataSet.getDataSet('xmipp_tutorial')
示例10: setUpClass
def setUpClass(cls):
# Create a new project
setupTestProject(cls)
cls.ds = DataSet.getDataSet("nma")
示例11: setUpClass
def setUpClass(cls):
setupTestProject(cls)
cls.dsXmipp = DataSet.getDataSet('xmipp_tutorial')
#cls.dsRelion = DataSet.getDataSet('relion_tutorial')
cls.dsGroel = DataSet.getDataSet('groel')
示例12: setUpClass
def setUpClass(cls):
setupTestProject(cls)
cls.dataset = DataSet.getDataSet('ribo_movies')
cls.movies = cls.dataset.getFile('movies')
cls.crdsDir = cls.dataset.getFile('posAllDir')
示例13: setUpClass
def setUpClass(cls):
setupTestOutput(cls)
cls.ds = DataSet.getDataSet('xmipp_tutorial')
cls.dsEmx = DataSet.getDataSet('emx')
示例14: setUpClass
def setUpClass(cls):
# Create a new project
setupTestProject(cls)
cls.dataset = DataSet.getDataSet('mda')
cls.particlesFn = cls.dataset.getFile('particles/xmipp_particles.xmd')
示例15: setUpClass
def setUpClass(cls):
setupTestProject(cls)
cls.dsMovies = DataSet.getDataSet('movies')