Skip to content

Commit

Permalink
fix run_test.py and related functions
Browse files Browse the repository at this point in the history
  • Loading branch information
zfalls committed Aug 3, 2021
1 parent 56a6044 commit c281990
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cando/cando.py
Original file line number Diff line number Diff line change
Expand Up @@ -4045,7 +4045,7 @@ def print_time(s):
c_id = int(c_id)

if org=='test':
pre = "cando/data/v2.2+/"
pre = "."
else:
pre = os.path.dirname(__file__) + "/data/v2.2+/"
lig_path = "{}/ligs/fps".format(pre)
Expand Down Expand Up @@ -4167,7 +4167,7 @@ def print_time(s):
start = time.time()

if org=='test':
pre = "cando/data/v2.2+/"
pre = "."
else:
pre = os.path.dirname(__file__) + "/data/v2.2+/"

Expand Down Expand Up @@ -4434,7 +4434,7 @@ def print_time(s):
print("Generating CANDO signature...")
start = time.time()
if org=='test':
pre = "cando/data/v2.2+/"
pre = "."
else:
pre = os.path.dirname(__file__) + "/data/v2.2+/"
lig_path = "{}/ligs/fps/".format(pre)
Expand Down Expand Up @@ -4926,7 +4926,7 @@ def get_data(v="v2.2", org='nrpdb', fp='rd_ecfp4', vect='int'):
sys.exit()
print('Downloading data for {}...'.format(v))
if org=='test':
pre = "cando/data/v2.2+"
pre = "."
else:
pre = os.path.dirname(__file__) + "/data/v2.2+"
# Dirs
Expand Down
2 changes: 2 additions & 0 deletions run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@

print("Test #15 - Add and save compound then generate new matrix")
print('-------')
print(os.listdir())
cnd.add_cmpds(new_cmpds, cmpd_dir=cmpd_dir, v="test.0")
print(os.listdir())
cnd.generate_matrix(v="test.1", org="test", out_file=matrix_file, ncpus=ncpus)
print('\n')

Expand Down

0 comments on commit c281990

Please sign in to comment.