本文整理汇总了Python中ase.calculators.calculator.Calculator.set方法的典型用法代码示例。如果您正苦于以下问题:Python Calculator.set方法的具体用法?Python Calculator.set怎么用?Python Calculator.set使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ase.calculators.calculator.Calculator
的用法示例。
在下文中一共展示了Calculator.set方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: set
# 需要导入模块: from ase.calculators.calculator import Calculator [as 别名]
# 或者: from ase.calculators.calculator.Calculator import set [as 别名]
def set(self, **kwargs):
"""
Function to set parameters. For now, this doesn't do anything
as all parameters are within the model and descriptor.
"""
changed_parameters = Calculator.set(self, **kwargs)
if len(changed_parameters) > 0:
self.reset()
示例2: set
# 需要导入模块: from ase.calculators.calculator import Calculator [as 别名]
# 或者: from ase.calculators.calculator.Calculator import set [as 别名]
def set(self, **kwargs):
changed_parameters = Calculator.set(self, **kwargs)
if changed_parameters:
self.reset()
示例3: set
# 需要导入模块: from ase.calculators.calculator import Calculator [as 别名]
# 或者: from ase.calculators.calculator.Calculator import set [as 别名]
def set(self, **kwargs):
"""Set parameters like set(key1=value1, key2=value2, ...)."""
changed_parameters = Calculator.set(self, **kwargs)
if changed_parameters:
self.reset()
示例4: set
# 需要导入模块: from ase.calculators.calculator import Calculator [as 别名]
# 或者: from ase.calculators.calculator.Calculator import set [as 别名]
def set(self, **kwargs):
'''Set parameters like set(key1=value1, key2=value2, ...).'''
changed_parameters = Calculator.set(self, **kwargs)
if(changed_parameters):
self.reset()