Skip to content

Commit

Permalink
Don't try to save mol2 unless run from tool interface
Browse files Browse the repository at this point in the history
  • Loading branch information
e-pettersen committed Nov 23, 2023
1 parent eabc9b7 commit 223d52c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bundles/dock_prep/bundle_info.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<BundleInfo name="ChimeraX-DockPrep" version="1.1.2"
<BundleInfo name="ChimeraX-DockPrep" version="1.1.3"
package="chimerax.dock_prep"
minSessionVersion="1" maxSessionVersion="1">

Expand Down
2 changes: 2 additions & 0 deletions src/bundles/dock_prep/src/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def dock_prep_steps(session, memorization, memorize_name, *, from_tool=False, **
kw_dict = {}
dp_step_needed = False
for param, default in defaults.items():
if param == "write_mol2" and not from_tool:
continue
val = kw.get(param, default)
if val:
dp_step_needed = True
Expand Down

0 comments on commit 223d52c

Please sign in to comment.