summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-02-25 21:03:31 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-02-25 21:03:31 -0700
commit339954ffc95c29327d33e3e2697fea1cf8e9427d (patch)
tree3b8e0abb48b964b7dd49c4314ce43f3211723860
parent0b35ed647ec4d786b488082dd98bb91ca0f5cc05 (diff)
Remove unused functions
-rw-r--r--ml_exp/read_qm7_data.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/ml_exp/read_qm7_data.py b/ml_exp/read_qm7_data.py
index 666f9c3fc..3017ac429 100644
--- a/ml_exp/read_qm7_data.py
+++ b/ml_exp/read_qm7_data.py
@@ -25,39 +25,6 @@ import numpy as np
import random
-# 'periodic_table_of_elements.txt' retrieved from
-# https://gist.github.com/GoodmanSciences/c2dd862cd38f21b0ad36b8f96b4bf1ee
-def read_nc_data(data_path):
- """
- Reads nuclear charge data from file and returns a dictionary.
- data_path: path to the data directory.
- """
- fname = 'periodic_table_of_elements.txt'
- with open(''.join([data_path, '/', fname]), 'r') as infile:
- temp_lines = infile.readlines()
-
- del temp_lines[0]
-
- lines = []
- for temp_line in temp_lines:
- new_line = temp_line.split(sep=',')
- lines.append(new_line)
-
- # Dictionary of nuclear charge.
- return {line[2]: int(line[0]) for line in lines}
-
-
-# For use in the rewriting of the code (from functional programming to object
-# oriented programming-ish)
-def print_nc(nc_data):
- """
- Prints the nuclear charge data to the terminal.
- nc_data: dict of nc.
- """
- for key in nc_data.keys():
- print(f'\'{key}\': {nc_data[key]},')
-
-
# 'hof_qm7.txt.txt' retrieved from
# https://github.com/qmlcode/tutorial
def read_db_data(zi_data,