本文整理汇总了Python中pymatgen.core.composition.Composition.ranked_compositions_from_indeterminate_formula方法的典型用法代码示例。如果您正苦于以下问题:Python Composition.ranked_compositions_from_indeterminate_formula方法的具体用法?Python Composition.ranked_compositions_from_indeterminate_formula怎么用?Python Composition.ranked_compositions_from_indeterminate_formula使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pymatgen.core.composition.Composition
的用法示例。
在下文中一共展示了Composition.ranked_compositions_from_indeterminate_formula方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUp
# 需要导入模块: from pymatgen.core.composition import Composition [as 别名]
# 或者: from pymatgen.core.composition.Composition import ranked_compositions_from_indeterminate_formula [as 别名]
def setUp(self):
self.comp = list()
self.comp.append(Composition("Li3Fe2(PO4)3"))
self.comp.append(Composition("Li3Fe(PO4)O"))
self.comp.append(Composition("LiMn2O4"))
self.comp.append(Composition("Li4O4"))
self.comp.append(Composition("Li3Fe2Mo3O12"))
self.comp.append(Composition("Li3Fe2((PO4)3(CO3)5)2"))
self.comp.append(Composition("Li1.5Si0.5"))
self.comp.append(Composition("ZnOH"))
self.indeterminate_comp = []
self.indeterminate_comp.append(Composition.ranked_compositions_from_indeterminate_formula("Co1", True))
self.indeterminate_comp.append(Composition.ranked_compositions_from_indeterminate_formula("Co1", False))
self.indeterminate_comp.append(Composition.ranked_compositions_from_indeterminate_formula("co2o3"))
self.indeterminate_comp.append(Composition.ranked_compositions_from_indeterminate_formula("ncalu"))
self.indeterminate_comp.append(Composition.ranked_compositions_from_indeterminate_formula("calun"))
self.indeterminate_comp.append(Composition.ranked_compositions_from_indeterminate_formula("liCoo2n (pO4)2"))
self.indeterminate_comp.append(Composition.ranked_compositions_from_indeterminate_formula("(co)2 (PO)4"))
self.indeterminate_comp.append(Composition.ranked_compositions_from_indeterminate_formula("Fee3"))