Syntax error dimorphite_dl.py, line #744

Computer-Aided Drug Design at the Durrant Lab Forums Dimorphite-DL Syntax error dimorphite_dl.py, line #744

  • This topic is empty.
Viewing 0 reply threads
  • Author
    Posts
    • #26390 Reply
      Norwid Behrnd
      Guest

      Dear Professor Durrant,
      Dear maintainer of Dimorphite-DL,

      I would like to suggest substitution of a line in script dimorphite_dl.py, line #744. Currently (2021-03-03), the file states

      if line is not "":

      which causes, running the script in Linux Debian 11 / bullseye (branch testing) with Python 3.9.1 the brief note

      SyntaxWarning: "is not" with a literal. Did you mean "!="?
      if line is not "":

      The warning may be muted if the line in question reads

      if line is not None:

      instead. Replying to an issue about OpenBabel on GitHub

      https://github.com/openbabel/openbabel/issues/2330

      your program was one of the first programs seen a couple of moments ago, possibly complementary to the one your colleague, Geoff Hutchison , curates.

      With best regards,

      Norwid Behrnd

Viewing 0 reply threads
Reply To: Syntax error dimorphite_dl.py, line #744
Your information:





<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre class=""> <em> <strong> <del datetime="" cite=""> <ins datetime="" cite=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">