Skip to content

Commit

Permalink
Better handling of supplied non-phil pdb ids
Browse files Browse the repository at this point in the history
  • Loading branch information
olegsobolev committed Nov 5, 2024
1 parent 1aa5bf9 commit 15f8585
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mmtbx/command_line/fetch_pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ def custom_args_proc(cli_parser):
if len(cli_parser.namespace.unknown) > 0:
# print("What is unknown: %s" % cli_parser.namespace.unknown)
# print("Curr selection: '%s'" % wf.fetch.pdb_ids)
wf.fetch.pdb_ids = cli_parser.namespace.unknown
res = []
for unk in cli_parser.namespace.unknown:
res += unk.replace(',',' ').split()
wf.fetch.pdb_ids = res
cli_parser.namespace.unknown = []
cli_parser.working_phil = cli_parser.master_phil.format(python_object=wf)

Expand Down

0 comments on commit 15f8585

Please sign in to comment.