Skip to content

Commit

Permalink
Fix unit conversion for from_smiles()
Browse files Browse the repository at this point in the history
  • Loading branch information
FanwangM committed Mar 10, 2022
1 parent 67207d5 commit 8865dbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions padelpy/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def from_smiles(smiles,
contains labels and values for each descriptor generated for each
supplied molecule
"""
# unit conversion for maximum running time per molecule
# seconds -> milliseconds
if maxruntime != -1:
maxruntime = maxruntime * 1000

timestamp = datetime.now().strftime("%Y%m%d%H%M%S%f")[:-3]

Expand Down

0 comments on commit 8865dbe

Please sign in to comment.