10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-26 06:14:43 +01:00
quantum_package/scripts/pseudo/elts_num_ele.py

16 lines
286 B
Python
Raw Normal View History

2018-04-30 18:43:13 +02:00
#!/usr/bin/env python2
2017-12-19 09:59:46 +01:00
import os
QP_ROOT=os.environ["QP_ROOT"]
name_to_elec = {}
with open(QP_ROOT+"/data/list_element.txt","r") as f:
data = f.readlines()
for line in data:
b = line.split()
name_to_elec[b[1]] = int(b[0])
if __name__ == '__main__':
print name_to_elec