Skip to content
Browse files

Migrate information in Doc/Crystal.txt to docstrings and remove the f…

…ile.
  • Loading branch information...
1 parent 3eed0fe commit 555a139d70f106f39523e15bf697ab53be5169c8 @cbrueffer cbrueffer committed with peterjc Dec 12, 2012
Showing with 5 additions and 15 deletions.
  1. +5 −0 Bio/Crystal/__init__.py
  2. +0 −15 Doc/Crystal.txt
View
5 Bio/Crystal/__init__.py
@@ -70,6 +70,8 @@ def __len__(self):
class Chain(object):
+ """This class represents a sequence of Hetero elements."""
+
def __init__(self, residues = ''):
self.data = []
if isinstance(residues, str):
@@ -215,6 +217,9 @@ def __iadd__(self, other):
class Crystal(object):
+ """This class represents a dictionary of labeled chains from the
+ same structure"""
+
def __init__(self, data = {}):
# Enforcestorage
if not isinstance(data, dict):
View
15 Doc/Crystal.txt
@@ -1,15 +0,0 @@
-Crystal.txt
-===========
-
-
-Crystal
--------
-Supports structures that contain nucleotides and amino acids plus some other small molecules.
-
-
-Classes
-Hetero - supports PDB hetero codes. Each code consists of up to 3 alphameric characters
-
-Chain - a sequence of Hetero elements
-
-Crystal - a dictionary of labeled chains from the same structure

0 comments on commit 555a139

Please sign in to comment.
Something went wrong with that request. Please try again.