Code Monkey home page Code Monkey logo

Comments (9)

pgrinaway avatar pgrinaway commented on June 19, 2024

If we have new_to_old_atom_map, we can do something like:

n_old_atoms = old_system.getNumParticles()
unique_old_atoms = [atom for atom in range(n_old_atoms) if atom not in new_to_old_atom_map.values()]

from perses.

jchodera avatar jchodera commented on June 19, 2024

Hm. OK. I think it would be useful to have convenient access to all the bits of information through TopologyProposal, though:

  • new_to_old_atom_map
  • old_to_new_atom_map
  • old_atoms_to_be_deleted
  • old_core_atoms
  • new_atoms_to_be_added
  • new_core_atoms

etc. Maybe we can make TopologyProposal a class that has methods/fields/properties to retrieve all of these, but they are computed as needed for convenience?

Would still maybe be useful to have the old topology in case we need to write PDB files of these transformations for debugging.

from perses.

pgrinaway avatar pgrinaway commented on June 19, 2024

I do generally agree that we should promote TopologyProposal to a class, and that it should have some of those convenience attributes.

from perses.

jchodera avatar jchodera commented on June 19, 2024

There is a test that is failing because old_topology is needed, I think. Not sure if critical or not.

from perses.

pgrinaway avatar pgrinaway commented on June 19, 2024

Ok... looking into this. I thought I had removed that dependency previously.

from perses.

pgrinaway avatar pgrinaway commented on June 19, 2024

Ok, these are the import problems I was talking about. I don't think the TopologyProposal has been imported properly in the tests.
(https://travis-ci.org/choderalab/perses#L847)[this] looks like that problem.

There are also some API issues. I'm going to open a PR and promote the TopologyProposal to a class now.

from perses.

jchodera avatar jchodera commented on June 19, 2024

Ah. topology_proposal is both used as a module name (from perses.rjmc import topology_proposal) and an object name.

Let me fix that.

from perses.

pgrinaway avatar pgrinaway commented on June 19, 2024

Oh! Sorry about that!

from perses.

pgrinaway avatar pgrinaway commented on June 19, 2024

Addressed by #27

from perses.

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.