当前位置: 首页>>代码示例>>Python>>正文


Python SingleClusterEnvironment.shared_data方法代码示例

本文整理汇总了Python中radical.ensemblemd.SingleClusterEnvironment.shared_data方法的典型用法代码示例。如果您正苦于以下问题:Python SingleClusterEnvironment.shared_data方法的具体用法?Python SingleClusterEnvironment.shared_data怎么用?Python SingleClusterEnvironment.shared_data使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在radical.ensemblemd.SingleClusterEnvironment的用法示例。


在下文中一共展示了SingleClusterEnvironment.shared_data方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: SingleClusterEnvironment

# 需要导入模块: from radical.ensemblemd import SingleClusterEnvironment [as 别名]
# 或者: from radical.ensemblemd.SingleClusterEnvironment import shared_data [as 别名]
        cluster = SingleClusterEnvironment(
            resource=RPconfig.REMOTE_HOST,
            cores=RPconfig.PILOTSIZE,
            walltime=RPconfig.WALLTIME,
            username=RPconfig.UNAME,  # username
            project=RPconfig.ALLOCATION,  # project
            queue=RPconfig.QUEUE,
            database_url=RPconfig.DBURL,
        )

        cluster.shared_data = [
            Kconfig.md_input_file,
            Kconfig.lsdm_config_file,
            Kconfig.top_file,
            Kconfig.mdp_file,
            "{0}/spliter.py".format(Kconfig.misc_loc),
            "{0}/gro.py".format(Kconfig.misc_loc),
            "{0}/pre_analyze.py".format(Kconfig.misc_loc),
            "{0}/post_analyze.py".format(Kconfig.misc_loc),
            "{0}/selection.py".format(Kconfig.misc_loc),
            "{0}/reweighting.py".format(Kconfig.misc_loc),
        ]

        cluster.allocate()

        # We set the 'instances' of the simulation step to 16. This means that 16
        # instances of the simulation are executed every iteration.
        # We set the 'instances' of the analysis step to 1. This means that only
        # one instance of the analysis is executed for each iteration
        cur_path = os.path.dirname(os.path.abspath(__file__))
        randomsa = Gromacs_LSDMap(
            iterations=Kconfig.num_iterations,
开发者ID:yuhangwang,项目名称:radical.ensemblemd,代码行数:34,代码来源:01_static_gromacs_lsdmap_loop.py

示例2: SingleClusterEnvironment

# 需要导入模块: from radical.ensemblemd import SingleClusterEnvironment [as 别名]
# 或者: from radical.ensemblemd.SingleClusterEnvironment import shared_data [as 别名]
            data.write('%s,%s,%s\n'%(coordinates.tolist()[0],coordinates.tolist()[1],coordinates.tolist()[2]))
        
        data.close()

        cluster = SingleClusterEnvironment(
                resource="xsede.comet",
                cores=core_count,
                walltime=60,
                username="solejar",
                project="unc100",
                #queue='debug',
                database_url="mongodb://sean:[email protected]:19678/pilot_test"
            )

        cluster.shared_data =[
            '/home/sean/midas/leaflet_finder/Vanilla/input.txt'
        ]

        
        
        # Allocate the resources.
        cluster.allocate()
        #stage input data???

        #make list of every window combination, to be used in atomDist
        
        #for i in range(0,traj_count,window_size):
         #   for j in range(i, traj_count-1,window_size):

          #      list_elem = [i,j]
           #     window_list.append(list_elem)
开发者ID:radical-cybertools,项目名称:midas,代码行数:33,代码来源:lf_finder_enMD_comet.py

示例3: SingleClusterEnvironment

# 需要导入模块: from radical.ensemblemd import SingleClusterEnvironment [as 别名]
# 或者: from radical.ensemblemd.SingleClusterEnvironment import shared_data [as 别名]
        cluster = SingleClusterEnvironment(
            resource=RPconfig.REMOTE_HOST,
            cores=RPconfig.PILOTSIZE,
            walltime=RPconfig.WALLTIME,
            username = RPconfig.UNAME, #username
            project = RPconfig.ALLOCATION, #project
            queue = RPconfig.QUEUE,
            database_url = RPconfig.DBURL,
        #    access_schema = config[RPconfig.REMOTE_HOST]['schema']      # This is so to support different access methods - gsissh, ssh - remove this if always running using ssh
        )

        cluster.shared_data = [
                                Kconfig.initial_crd_file,
                                Kconfig.md_input_file,
                                Kconfig.minimization_input_file,
                                Kconfig.top_file,
                               '{0}/postexec.py'.format(Kconfig.helper_scripts)
                            ]

        cluster.allocate()

        coco_amber_static = Extasy_CocoAmber_Static(maxiterations=Kconfig.num_iterations, simulation_instances=Kconfig.num_CUs, analysis_instances=Kconfig.num_CUs/64)
        cluster.run(coco_amber_static)

        cluster.deallocate()

    except EnsemblemdError, er:

        print "Ensemble MD Toolkit Error: {0}".format(str(er))
        raise # Just raise the execption again to get the backtrace
开发者ID:radical-experiments,项目名称:enmd-pattern-testing,代码行数:32,代码来源:extasy_amber_coco.py

示例4: SingleClusterEnvironment

# 需要导入模块: from radical.ensemblemd import SingleClusterEnvironment [as 别名]
# 或者: from radical.ensemblemd.SingleClusterEnvironment import shared_data [as 别名]
        # number of cores and runtime.

        cluster = SingleClusterEnvironment(
            resource=RPconfig.REMOTE_HOST,
            cores=RPconfig.PILOTSIZE,
            walltime=RPconfig.WALLTIME,
            username = RPconfig.UNAME, #username
            project = RPconfig.ALLOCATION, #project
            queue = RPconfig.QUEUE,
            database_url = RPconfig.DBURL,
        #    access_schema = config[RPconfig.REMOTE_HOST]['schema']      # This is so to support different access methods - gsissh, ssh - remove this if always running using ssh
        )

        cluster.shared_data = [
                                Kconfig.initial_crd_file,
                                Kconfig.md_input_file,
                                Kconfig.minimization_input_file,
                                Kconfig.top_file,
                            ]

        cluster.allocate()

        coco_amber_static = Extasy_CocoAmber_Static(maxiterations=Kconfig.num_iterations, simulation_instances=Kconfig.num_CUs, analysis_instances=1)
        cluster.run(coco_amber_static)

        cluster.deallocate()

    except EnsemblemdError, er:

        print "Ensemble MD Toolkit Error: {0}".format(str(er))
        raise # Just raise the execption again to get the backtrace
开发者ID:radical-experiments,项目名称:enmd-pattern-testing,代码行数:33,代码来源:extasy_amber_coco.py

示例5:

# 需要导入模块: from radical.ensemblemd import SingleClusterEnvironment [as 别名]
# 或者: from radical.ensemblemd.SingleClusterEnvironment import shared_data [as 别名]
            resource=RPconfig.REMOTE_HOST,
            cores=RPconfig.PILOTSIZE,
            walltime=RPconfig.WALLTIME,
            username = RPconfig.UNAME, #username
            project = RPconfig.ALLOCATION, #project
            queue = RPconfig.QUEUE,
            database_url = RPconfig.DBURL
      )

      cluster.shared_data = [
                                Kconfig.md_input_file,
                                Kconfig.lsdm_config_file,
                                Kconfig.top_file,
                                Kconfig.mdp_file,
                                '{0}/spliter.py'.format(Kconfig.helper_scripts),
                                '{0}/gro.py'.format(Kconfig.helper_scripts),
                                '{0}/run.py'.format(Kconfig.helper_scripts),
                                '{0}/pre_analyze.py'.format(Kconfig.helper_scripts),
                                '{0}/post_analyze.py'.format(Kconfig.helper_scripts),
                                '{0}/selection.py'.format(Kconfig.helper_scripts),
                                '{0}/reweighting.py'.format(Kconfig.helper_scripts)
                            ]

      if Kconfig.ndx_file is not None:
          cluster.shared_data.append(Kconfig.ndx_file)

      cluster.allocate()

      # We set the 'instances' of the simulation step to 16. This means that 16
      # instances of the simulation are executed every iteration.
      # We set the 'instances' of the analysis step to 1. This means that only
开发者ID:radical-cybertools,项目名称:ExTASY,代码行数:33,代码来源:extasy_gromacs_lsdmap.py


注:本文中的radical.ensemblemd.SingleClusterEnvironment.shared_data方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。