-
Notifications
You must be signed in to change notification settings - Fork 664
Writing a Topology Reader
Richard Gowers edited this page May 24, 2015
·
9 revisions
The topology data defines the structure of the MDAnalysis Universe, and is the first structure generated on initialising the Universe. The generation of this structure is done by a TopologyReader object, which generally reads this information from a file. The first argument in Universe init is the topology file.
A topology reader subclasses the class TopologyReader, and then must define the method parse
The parse method must return a dictionary of fields, as defined in Topology Data Structures
For an example of a very minimalistic TopologyReader, see the XYZParser
For an example of a TopologyReader populating many fields, see the PSFParser