0.1.170
This commit is contained in:
parent
463fc041f1
commit
7176bc5d57
@ -1,7 +1,7 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
# replace with your username:
|
# replace with your username:
|
||||||
name = guan
|
name = guan
|
||||||
version = 0.1.169
|
version = 0.1.170
|
||||||
author = guanjihuan
|
author = guanjihuan
|
||||||
author_email = guanjihuan@163.com
|
author_email = guanjihuan@163.com
|
||||||
description = An open source python package
|
description = An open source python package
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Metadata-Version: 2.4
|
Metadata-Version: 2.4
|
||||||
Name: guan
|
Name: guan
|
||||||
Version: 0.1.169
|
Version: 0.1.170
|
||||||
Summary: An open source python package
|
Summary: An open source python package
|
||||||
Home-page: https://py.guanjihuan.com
|
Home-page: https://py.guanjihuan.com
|
||||||
Author: guanjihuan
|
Author: guanjihuan
|
||||||
|
@ -1,4 +1,21 @@
|
|||||||
# functions_using_objects_of_custom_classes
|
# Module: functions_using_objects_of_custom_classes
|
||||||
|
|
||||||
|
# 将原子对象列表转成多个独立列表
|
||||||
|
def convert_atom_object_list_to_multiple_lists(atom_object_list):
|
||||||
|
name_list = []
|
||||||
|
index_list = []
|
||||||
|
x_list = []
|
||||||
|
y_list = []
|
||||||
|
z_list = []
|
||||||
|
energy_list = []
|
||||||
|
for atom_object in atom_object_list:
|
||||||
|
name_list.append(atom_object.name)
|
||||||
|
index_list.append(atom_object.index)
|
||||||
|
x_list.append(atom_object.x)
|
||||||
|
y_list.append(atom_object.y)
|
||||||
|
z_list.append(atom_object.z)
|
||||||
|
energy_list.append(atom_object.energy)
|
||||||
|
return name_list, index_list, x_list, y_list, z_list, energy_list
|
||||||
|
|
||||||
# 将原子对象列表转成原子字典列表
|
# 将原子对象列表转成原子字典列表
|
||||||
def convert_atom_object_list_to_atom_dict_list(atom_object_list):
|
def convert_atom_object_list_to_atom_dict_list(atom_object_list):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user