Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't TopologyProposal need old_topology as well? #22

Closed
jchodera opened this issue Nov 13, 2015 · 9 comments
Closed

Doesn't TopologyProposal need old_topology as well? #22

jchodera opened this issue Nov 13, 2015 · 9 comments

Comments

@jchodera
Copy link
Member

Otherwise how will we figure out the old atoms that don't appear in the new molecule?

@pgrinaway
Copy link
Member

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()]

@jchodera
Copy link
Member Author

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.

@pgrinaway
Copy link
Member

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

@jchodera
Copy link
Member Author

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

@pgrinaway
Copy link
Member

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

@pgrinaway
Copy link
Member

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.

@jchodera
Copy link
Member Author

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

Let me fix that.

@pgrinaway
Copy link
Member

Oh! Sorry about that!

@pgrinaway
Copy link
Member

Addressed by #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants