Skip to content

Commit aac1fb4

Browse files
author
Jorge Roel
committed
Fixed swarm numbering and model writing
1 parent b38a513 commit aac1fb4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/post/lgd_rank_swarm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def parse_command_line():
3333
os.chdir(os.path.join(DEFAULT_SWARM_FOLDER + str(swarm_id)))
3434
result_file_name = os.path.join(GSO_OUTPUT_FILE % args.steps)
3535
lightdock_output = read_lightdock_output(result_file_name)
36+
for g in lightdock_output:
37+
g.id_cluster = swarm_id
38+
g.pdb_file = "lightdock_" + str(g.id_glowworm) + ".pdb"
3639
write_ranking_to_file(lightdock_output, order_by="scoring")
3740
os.chdir(CURRENT_FOLDER)
3841
except IOError:

0 commit comments

Comments
 (0)