當前位置: 首頁>>代碼示例>>Python>>正文


Python tests.DataSet類代碼示例

本文整理匯總了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)
開發者ID:I2PC,項目名稱:scipion,代碼行數:11,代碼來源:test_protocols_import_ctfs.py

示例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
開發者ID:azazellochg,項目名稱:scipion,代碼行數:48,代碼來源:test_protocols_sets.py

示例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)
開發者ID:I2PC,項目名稱:scipion,代碼行數:7,代碼來源:test_workflow_streaming.py

示例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)
開發者ID:I2PC,項目名稱:scipion,代碼行數:11,代碼來源:test_protocol_structure_mapping.py

示例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
開發者ID:I2PC,項目名稱:scipion,代碼行數:42,代碼來源:test_protocol_locscale.py

示例6: setUpClass

 def setUpClass(cls):
     setupTestProject(cls)
     cls.dsXmipp = DataSet.getDataSet('xmipp_tutorial')
     cls.dsGrigorieff = DataSet.getDataSet('grigorieff')
開發者ID:azazellochg,項目名稱:scipion,代碼行數:4,代碼來源:test_protocols_import_ctfs.py

示例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')
開發者ID:I2PC,項目名稱:scipion,代碼行數:6,代碼來源:test_protocols_resmap.py

示例8: setUpClass

 def setUpClass(cls):
     setupTestProject(cls)
     cls.dsRelion = DataSet.getDataSet("relion_tutorial")
     # Import only once for all tests
     cls.protImport = cls.runImportFromScipion()
開發者ID:azazellochg,項目名稱:scipion,代碼行數:5,代碼來源:test_protocols_export_particles.py

示例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')
開發者ID:I2PC,項目名稱:scipion,代碼行數:5,代碼來源:test_protocols_add_noise.py

示例10: setUpClass

 def setUpClass(cls):
     # Create a new project
     setupTestProject(cls)
     cls.ds = DataSet.getDataSet("nma")
開發者ID:josegutab,項目名稱:scipion,代碼行數:4,代碼來源:test_workflow_nma.py

示例11: setUpClass

 def setUpClass(cls):
     setupTestProject(cls)
     cls.dsXmipp = DataSet.getDataSet('xmipp_tutorial')
     #cls.dsRelion = DataSet.getDataSet('relion_tutorial')
     cls.dsGroel = DataSet.getDataSet('groel')
開發者ID:I2PC,項目名稱:scipion,代碼行數:5,代碼來源:test_protocols_import_coords.py

示例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')
開發者ID:coocoky,項目名稱:scipion,代碼行數:5,代碼來源:test_workflow_high_throughput.py

示例13: setUpClass

 def setUpClass(cls):
     setupTestOutput(cls)
     cls.ds = DataSet.getDataSet('xmipp_tutorial')  
     cls.dsEmx = DataSet.getDataSet('emx')
開發者ID:coocoky,項目名稱:scipion,代碼行數:4,代碼來源:test_convert_relion.py

示例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')
開發者ID:I2PC,項目名稱:scipion,代碼行數:5,代碼來源:test_workflow_imagicMSA.py

示例15: setUpClass

 def setUpClass(cls):
     setupTestProject(cls)
     cls.dsMovies = DataSet.getDataSet('movies')
開發者ID:josegutab,項目名稱:scipion,代碼行數:3,代碼來源:test_protocols_import_movies.py


注:本文中的pyworkflow.tests.DataSet類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。