Skip to content
Snippets Groups Projects
Commit 2ba81264 authored by Ronan Hamon's avatar Ronan Hamon
Browse files

Add release 1.0

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #
# -*- coding: utf-8 -*-
# ######### COPYRIGHT #########
#
# Copyright(c) 2018
# -----------------
#
# * Laboratoire d'Informatique et Systèmes: http://www.lis-lab.fr/
# * Université d'Aix-Marseille : http://www.univ-amu.fr/
#
# Contributors
# ------------
#
# * Ronan Hamon <firstname.lastname_AT_lis-lab.fr>
# * Valentin Emiya <firstname.lastname_AT_lis-lab.fr>
#
# Description
# -----------
#
# madarrays is a Python module for audio data structures with missing entries
#
# Version
# -------
#
# * madarrays version=1.0
#
# Licence
# -------
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
"""This modules implements data structures adapted to handle missing entries in
audio data structures."""
from .mad_array import MadArray
from .waveform import Waveform
__all__ = ['MadArray', 'Waveform']
__version__ = "1.0"
This diff is collapsed.
# -*- coding: utf-8 -*-
# ######### COPYRIGHT #########
#
# Copyright(c) 2018
# -----------------
#
# * Laboratoire d'Informatique et Systèmes <http://www.lis-lab.fr/>
# * Université d'Aix-Marseille <http://www.univ-amu.fr/>
# * Centre National de la Recherche Scientifique <http://www.cnrs.fr/>
# * Université de Toulon <http://www.univ-tln.fr/>
#
# Contributors
# ------------
#
# * Ronan Hamon <firstname.lastname_AT_lis-lab.fr>
# * Valentin Emiya <firstname.lastname_AT_lis-lab.fr>
#
# Description
# -----------
#
# Python package for audio data structures with missing entries
#
# Licence
# -------
# This file is part of madarrays.
#
# madarrays is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
This diff is collapsed.
This diff is collapsed.
# -*- coding: utf-8 -*-
# ######### COPYRIGHT #########
#
# Copyright(c) 2018
# -----------------
#
# * Laboratoire d'Informatique et Systèmes <http://www.lis-lab.fr/>
# * Université d'Aix-Marseille <http://www.univ-amu.fr/>
# * Centre National de la Recherche Scientifique <http://www.cnrs.fr/>
# * Université de Toulon <http://www.univ-tln.fr/>
#
# Contributors
# ------------
#
# * Ronan Hamon <firstname.lastname_AT_lis-lab.fr>
# * Valentin Emiya <firstname.lastname_AT_lis-lab.fr>
#
# Description
# -----------
#
# Python package for audio data structures with missing entries
#
# Licence
# -------
# This file is part of madarrays.
#
# madarrays is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ######### COPYRIGHT #########
"""Utils functions for testing."""
import numpy as np
def generate_mask_50(shape):
n_elements = np.prod(shape)
m = np.zeros(shape, dtype=np.bool)
ind = np.random.choice(np.arange(n_elements), n_elements // 2,
replace=False)
m.flat[ind] = True
return m
def assert_array_less_or_equal(x, y, **kwargs):
eps = np.finfo(x.dtype).eps
np.testing.assert_array_less(x - eps, y, **kwargs)
This diff is collapsed.
--index-url https://pypi.python.org/simple/
numpy>=1.11
scipy>=0.17
matplotlib>=1.5
simpleaudio>=1.0
resampy>=0.2
--index-url https://pypi.python.org/simple/
coverage
ipython
pytest
pytest-cov
pytest-randomly
--index-url https://pypi.python.org/simple/
sphinx
nbsphinx
numpydoc
jupyter
sphinx-paramlinks
[tool:pytest]
testpaths = madarrays
addopts = --verbose
--cov-report=term-missing
--cov-report=html
--cov=madarrays
--doctest-modules
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment