def _phase_kuramoto(self, teta, t, argv):
index = argv;<EOL>phase = <NUM_LIT:0>;<EOL>for k in range(<NUM_LIT:0>, self._num_osc):<EOL><INDENT>if (self.has_connection(index, k) == True):<EOL><INDENT>phase += self._negative_weight * math.sin(self._phases[k] - teta);<EOL><DEDENT>else:<EOL><INDENT>phase += self._positive_weight * math.sin(self._phases[k] - teta);<EOL><DEDENT><DEDENT>return ( phase / self._reduction )<EOL>
!
        @brief Returns result of phase calculation for oscillator in the network.

        @param[in] teta (double): Value of phase of the oscillator with index argv in the network.
        @param[in] t (double): Unused, can be ignored.
        @param[in] argv (uint): Index of the oscillator in the network.

        @return (double) New value of phase for oscillator with index argv.