allpy
view allpy/monomer.py @ 191:73f9779491ef
Renamed lib to allpy
Previously, every import looked like "from allpy.lib import ...", which
was ridiculous.
Consequences:
1. Uses of the package look like "from allpy import"
2. When testing the package locally, you have to add `pwd` to PYTHONPATH,
not `pwd`/.. (this is a good thing (tm))
3. It is now possible to make a proper Debian package
The change renames directory & fixes all imports referencing allpy.lib
The results are untested since there were no working tests before the
change.
author | Daniil Alexeyevsky <me.dendik@gmail.com> |
---|---|
date | Thu, 18 Nov 2010 19:38:05 +0300 |
parents | lib/monomer.py@be4773230e65 |
children | 346a6cd4fc1d |
line source
1 #!/usr/bin/python
13 """ Monomer type
15 name -- string like "Valine"
16 code1 -- one-letter code (in upper case)
17 code3 -- three-letter code (in upper case)
18 is_modified -- True of False
19 """
29 @staticmethod
32 @staticmethod
36 @staticmethod
40 # TO DISCUSS
49 """ Monomer
51 type -- link to MonomerType object
52 """
68 @staticmethod
72 """ Returns new AminoAcid object of this type """
81 @staticmethod
85 """ Returns new AminoAcid object of this type """
89 """ Amino acid """
90 pass
93 """ Deoxyribonucleic acid """
94 pass
96 # prepare all aminoacids