diff options
author | David Luevano <55825613+luevano@users.noreply.github.com> | 2020-02-18 21:43:23 -0700 |
---|---|---|
committer | David Luevano <55825613+luevano@users.noreply.github.com> | 2020-02-18 21:43:23 -0700 |
commit | 6fe927c5e08fa56633dd24346f4b4747555aab1b (patch) | |
tree | 47ba3b98508b4be78aca4a445773790cb49ba0c0 | |
parent | cf88764c4571cdb6dec2c69fb14288adf377c0e3 (diff) |
Fix bug
-rw-r--r-- | ml_exp/do_ml.py | 2 | ||||
-rw-r--r-- | ml_exp/read_qm7_data.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ml_exp/do_ml.py b/ml_exp/do_ml.py index ebb0e505f..110242a1d 100644 --- a/ml_exp/do_ml.py +++ b/ml_exp/do_ml.py @@ -150,7 +150,7 @@ def do_ml(min_training_size, # Data reading. molecules, nuclear_charge, energy_pbe0, energy_delta =\ - read_qm7_data(r_seed) + read_qm7_data(r_seed=r_seed) # Matrices calculation. cm_data, ljm_data = parallel_create_matrices(molecules, diff --git a/ml_exp/read_qm7_data.py b/ml_exp/read_qm7_data.py index 06de44b02..81be05a17 100644 --- a/ml_exp/read_qm7_data.py +++ b/ml_exp/read_qm7_data.py @@ -35,7 +35,7 @@ def read_nc_data(data_path): data_path: path to the data directory. """ fname = 'periodic_table_of_elements.txt' - with open(''.join([data_path, '\\', fname]), 'r') as infile: + with open(''.join([data_path, '/', fname]), 'r') as infile: temp_lines = infile.readlines() del temp_lines[0] |