-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor in light of discussion in #48.
We will encourage setting a Sim universe directly with an existing Universe, with the hope that we can eventually hide UniverseDefinition. At the moment, though, we leave it exposed for any manual interventions that can't be handled from the Universe itself. Also, AtomSelection getitem no longer returns an AtomGroup, but instead gives back the definition of the selection (that which was stored). It is possible to store only strings or numpy arrays of atom indices, or tuples/lists of these in any combination. One cannot directly store AtomGroups, but can store atom indices with `AG.indices`. Getting back an AtomGroup from the stored definition requires using the `create` method. This makes it clear that a new AtomGroup is being generated, and that there is a cost to this.
- Loading branch information
Showing
4 changed files
with
205 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.