[Chimera-users] setting pdb path for local mirror
Christoph Best
best at biochem.mpg.de
Mon Dec 17 05:50:35 PST 2007
Moo Cow writes:
> When a non-python reader looks at the code (__init__.py), it
> seems to be trying out the divided directory
>
> IDcode = IDcode.lower()
> subpath = IDcode[1:3] + os.sep + "pdb" + IDcode + ".ent"
Python has a "special" way of writing indices: The subsequence is
formed excluding the final index, so s[1:3] means the second and third
character of s (indices 1 and 2), but excluding the fourth at index 3.
-Christoph
--
| Christoph Best <cbest at rzg.mpg.de> http://www.rzg.mpg.de/~cbest
| Max-Planck-Institut fuer Biochemie, Munich, Germany +49-89-8578 2634
More information about the Chimera-users
mailing list