def _phase_normalization(self, teta):
norm_teta = teta;<EOL>while (norm_teta > (<NUM_LIT> * pi)) or (norm_teta < <NUM_LIT:0>):<EOL><INDENT>if (norm_teta > (<NUM_LIT> * pi)):<EOL><INDENT>norm_teta -= <NUM_LIT> * pi;<EOL><DEDENT>else:<EOL><INDENT>norm_teta += <NUM_LIT> * pi;<EOL><DEDENT><DEDENT>return norm_teta<EOL>
!
        @brief Normalization of phase of oscillator that should be placed between [0; 2 * pi].

        @param[in] teta (double): phase of oscillator.

        @return (double) Normalized phase.