Commit 067be5f7 authored by Anthony Larcher's avatar Anthony Larcher

package structure

parents
Pipeline #40 skipped
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
This diff is collapsed.
# -*- coding: utf-8 -*-
#
# This file is part of SIDEPIPE.
#
# SIDEPIPE is a python package for speaker verification.
# Home page: http://www-lium.univ-lemans.fr/sidekit/
#
# SIDEPIPE is a python package for acoustic parametrization for speaker verification.
# Home page: http://www-lium.univ-lemans.fr/sidekit/
#
# SIDEPIPE is free software: you can redistribute it and/or modify
# it under the terms of the GNU LLesser General Public License as
# published by the Free Software Foundation, either version 3 of the License,
# or (at your option) any later version.
#
# SIDEPIPE is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with SIDEPIPE. If not, see <http://www.gnu.org/licenses/>.
"""
Copyright 2016 Anthony Larcher
"""
def coroutine(func):
"""
Decorator that allows to forget about the first call of a coroutine .next()
method or .send(None)
This call is done inside the decorator
:param func: the coroutine to decorate
"""
def start(*args,**kwargs):
cr = func(*args,**kwargs)
next(cr)
return cr
return start
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment