Giter Site home page Giter Site logo

Comments (9)

keith923 avatar keith923 commented on August 23, 2024

@kmonson, can you comment? Do you know off the top of your head where this is happening?

from pdb2pqr.

tonigi avatar tonigi commented on August 23, 2024

In this branch I tried to fix it with liberal use of OrderedDicts (4bad162a6c03d79e109d6e9c9d5b69312bb59881).

from pdb2pqr.

kmonson avatar kmonson commented on August 23, 2024

I'm not sure where the problem is in this case. We try to be deterministic everywhere it matters. I know that for debumping we use the same order. In the graphcut code in pdb2pka order doesn't matter if the algorithm is implemented correctly.

I could see a case (based on what changed in @tonigi's branch) where the hbond optimization could happen out of order and cause a problem. The algorithm checks each half of a potential bond and sometime the results of the first half causes the second half to be skipped. I was under the impression that it was symmetrical, but that may not be the case.

It would certainly explain the one pdb2pka test case we saw that was platform dependent.

from pdb2pqr.

keith923 avatar keith923 commented on August 23, 2024

It seems like this must have been a problem even before @tonigi ported the code to Python 3. Right? I mean, dict ordering has never been guaranteed. At least not that I've seen.

from pdb2pqr.

tonigi avatar tonigi commented on August 23, 2024

Yes. Python3 only made it easier to spot because it enforces randomization between runs (and not just between platforms).

from pdb2pqr.

tonigi avatar tonigi commented on August 23, 2024

By the way, Py 3.6 again changed the behaviour of dictionaries, which are now ordered . Still, it is probably a good idea to be explicit in the use of OrderedDict if the goal is to be deterministic.

from pdb2pqr.

sobolevnrm avatar sobolevnrm commented on August 23, 2024

from pdb2pqr.

sobolevnrm avatar sobolevnrm commented on August 23, 2024

@intendo -- can you see if Electrostatics/apbs-pdb2pqr@4bad162 can be merged?

from pdb2pqr.

sobolevnrm avatar sobolevnrm commented on August 23, 2024

The -R option is no longer supported so I am closing this issue.

from pdb2pqr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.