\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{model}\PYG{o}{.}\PYG{n}{atom\PYGZus{}to\PYGZus{}internal\PYGZus{}coordinates}\PYG{p}{()}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k}{for} \PYG{n}{r} \PYG{o+ow}{in} \PYG{n}{model}\PYG{o}{.}\PYG{n}{get\PYGZus{}residues}\PYG{p}{():}
\PYG{g+gp}{... }    \PYG{k}{if} \PYG{n}{r}\PYG{o}{.}\PYG{n}{internal\PYGZus{}coord}\PYG{p}{:}
\PYG{g+gp}{... }        \PYG{n+nb}{print}\PYG{p}{(}
\PYG{g+gp}{... }            \PYG{n}{r}\PYG{p}{,}
\PYG{g+gp}{... }            \PYG{n}{r}\PYG{o}{.}\PYG{n}{internal\PYGZus{}coord}\PYG{o}{.}\PYG{n}{get\PYGZus{}angle}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}psi\PYGZdq{}}\PYG{p}{),}
\PYG{g+gp}{... }            \PYG{n}{r}\PYG{o}{.}\PYG{n}{internal\PYGZus{}coord}\PYG{o}{.}\PYG{n}{get\PYGZus{}angle}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}phi\PYGZdq{}}\PYG{p}{),}
\PYG{g+gp}{... }            \PYG{n}{r}\PYG{o}{.}\PYG{n}{internal\PYGZus{}coord}\PYG{o}{.}\PYG{n}{get\PYGZus{}angle}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}omega\PYGZdq{}}\PYG{p}{),}  \PYG{c+c1}{\PYGZsh{} or \PYGZdq{}omg\PYGZdq{}}
\PYG{g+gp}{... }            \PYG{n}{r}\PYG{o}{.}\PYG{n}{internal\PYGZus{}coord}\PYG{o}{.}\PYG{n}{get\PYGZus{}angle}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}chi2\PYGZdq{}}\PYG{p}{),}
\PYG{g+gp}{... }            \PYG{n}{r}\PYG{o}{.}\PYG{n}{internal\PYGZus{}coord}\PYG{o}{.}\PYG{n}{get\PYGZus{}angle}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}CB:CA:C\PYGZdq{}}\PYG{p}{),}
\PYG{g+gp}{... }            \PYG{p}{(}\PYG{n}{r}\PYG{o}{.}\PYG{n}{internal\PYGZus{}coord}\PYG{o}{.}\PYG{n}{get\PYGZus{}length}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}\PYGZhy{}1C:0N\PYGZdq{}}\PYG{p}{)}  \PYG{c+c1}{\PYGZsh{} i\PYGZhy{}1 to i peptide bond}
\PYG{g+gp}{... }              \PYG{k}{if} \PYG{n}{r}\PYG{o}{.}\PYG{n}{internal\PYGZus{}coord}\PYG{o}{.}\PYG{n}{rprev} \PYG{k}{else} \PYG{l+s+s2}{\PYGZdq{}None\PYGZdq{}}\PYG{p}{)}
\PYG{g+gp}{... }        \PYG{p}{)}
\end{Verbatim}
