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


Python composed.Parameters類代碼示例

本文整理匯總了Python中zeobuilder.actions.composed.Parameters的典型用法代碼示例。如果您正苦於以下問題:Python Parameters類的具體用法?Python Parameters怎麽用?Python Parameters使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Parameters類的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: default_parameters

 def default_parameters(cls):
     result = Parameters()
     result.number1 = 6
     result.number2 = 6
     result.distance = 0.5
     result.bond_type = BOND_SINGLE
     return result
開發者ID:woutersmet,項目名稱:Zeo_thesis,代碼行數:7,代碼來源:bond.py

示例2: fn

 def fn():
     context.application.model.file_open("test/input/core_objects.zml")
     context.application.main.toggle_selection(context.application.model.universe.children[3], on=True)
     parameters = Parameters()
     parameters.translation = Translation([2.0, 4.1, -1.0])
     TranslateDialog = context.application.plugins.get_action("TranslateDialog")
     assert TranslateDialog.analyze_selection(parameters)
     TranslateDialog(parameters)
開發者ID:molmod,項目名稱:zeobuilder,代碼行數:8,代碼來源:test_basic.py

示例3: free_optimize

 def free_optimize(self, springs):
     context.application.main.select_nodes(springs)
     OptimizeSprings = context.application.plugins.get_action("OptimizeSprings")
     parameters = Parameters()
     parameters.allow_rotation = True
     parameters.update_interval = 0.4
     parameters.update_steps = 1
     OptimizeSprings(parameters)
開發者ID:molmod,項目名稱:zeobuilder,代碼行數:8,代碼來源:scanner.py

示例4: execute_drag

 def execute_drag(self, destination, child_index):
     parameters = Parameters()
     context.application.cache.drag_destination = destination
     parameters.child_index = child_index
     for drag_action in self.drag_actions:
         if drag_action.cached_analyze_selection(parameters=parameters):
             drag_action(parameters=parameters)
             return True
     return False
開發者ID:woutersmet,項目名稱:Zeo_thesis,代碼行數:9,代碼來源:drag.py

示例5: default_parameters

 def default_parameters(cls):
     result = Parameters()
     universe = context.application.model.universe
     if universe.cell.active[0]:
         result.interval_a = numpy.array([0.0, universe.repetitions[0]], float)
     if universe.cell.active[1]:
         result.interval_b = numpy.array([0.0, universe.repetitions[1]], float)
     if universe.cell.active[2]:
         result.interval_c = numpy.array([0.0, universe.repetitions[2]], float)
     return result
開發者ID:molmod,項目名稱:zeobuilder,代碼行數:10,代碼來源:universe.py

示例6: fn

 def fn():
     context.application.model.file_open("test/input/lau.zml")
     context.application.main.select_nodes([context.application.model.universe])
     parameters = Parameters()
     parameters.number1 = 14
     parameters.number2 = 14
     parameters.distance = 6.0
     parameters.bond_type = BOND_SINGLE
     AutoConnectParameters = context.application.plugins.get_action("AutoConnectParameters")
     assert AutoConnectParameters.analyze_selection(parameters)
     AutoConnectParameters(parameters)
開發者ID:molmod,項目名稱:zeobuilder,代碼行數:11,代碼來源:test_molecular.py

示例7: fn

    def fn():
        context.application.model.file_open("test/input/springs.zml")
        context.application.main.select_nodes(
            context.application.model.universe.children[7:9][::-1] +
            context.application.model.universe.children[2:6][::-1]
        )
        parameters = Parameters()
        parameters.allow_rotation = True
        parameters.update_interval = 0.4
        parameters.update_steps = 1

        OptimizeSprings = context.application.plugins.get_action("OptimizeSprings")
        assert OptimizeSprings.analyze_selection(parameters)
        OptimizeSprings(parameters)
開發者ID:molmod,項目名稱:zeobuilder,代碼行數:14,代碼來源:test_builder.py

示例8: default_parameters

 def default_parameters(cls):
     result = Parameters()
     result.filter_atom1 = Expression()
     result.filter_bond12 = Expression()
     result.filter_atom2 = Expression()
     result.filter_bond23 = Expression()
     result.filter_atom3 = Expression()
     result.filter_bond34 = Expression()
     result.filter_atom4 = Expression()
     return result
開發者ID:molmod,項目名稱:zeobuilder,代碼行數:10,代碼來源:distributionic.py

示例9: default_parameters

 def default_parameters(cls):
     result = Parameters()
     result.n = 5
     result.m = 1
     result.flat = False
     result.max_length = 50*angstrom
     result.max_error = 0.01*angstrom
     result.tube_length = Undefined(50*angstrom)
     return result
開發者ID:woutersmet,項目名稱:Zeo_thesis,代碼行數:9,代碼來源:tube.py

示例10: default_parameters

 def default_parameters(cls):
     result = Parameters()
     result.translation = Translation.identity()
     return result
開發者ID:molmod,項目名稱:zeobuilder,代碼行數:4,代碼來源:transform.py

示例11: default_parameters

 def default_parameters(cls):
     result = Parameters()
     result.expression = Expression()
     result.recursive = cls.SELECT_PLAIN
     return result
開發者ID:woutersmet,項目名稱:Zeo_thesis,代碼行數:5,代碼來源:select.py


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