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

Merge branch 'operations' of gitlab.lis-lab.fr:skmad-suite/madarrays into operations

parents 05bdc915 743eb257
No related branches found
No related tags found
No related merge requests found
# run the test suite # run the test suite
tests_old_ubuntu: tests:
image: registry.gitlab.lis-lab.fr:5005/skmad-suite/madarrays/ubuntu:16.04 image: registry.gitlab.lis-lab.fr:5005/skmad-suite/madarrays/ubuntu:18.04
tags:
- docker
script:
- pip3 install . --no-deps
- pytest
tests_new_ubuntu:
image: registry.gitlab.lis-lab.fr:5005/skmad-suite/madarrays/ubuntu:rolling
tags: tags:
- docker - docker
script: script:
...@@ -20,7 +12,7 @@ tests_new_ubuntu: ...@@ -20,7 +12,7 @@ tests_new_ubuntu:
# generate the documentation # generate the documentation
pages: pages:
image: registry.gitlab.lis-lab.fr:5005/skmad-suite/madarrays/ubuntu:rolling image: registry.gitlab.lis-lab.fr:5005/skmad-suite/madarrays/ubuntu:18.04
tags: tags:
- docker - docker
only: only:
......
...@@ -26,7 +26,7 @@ Documentation ...@@ -26,7 +26,7 @@ Documentation
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
install installation
references references
tutorials tutorials
credits credits
......
Install Installation
####### ############
``madarrays`` requires the following packages: ``madarrays`` requires the following packages:
* `python >= 3.5 <https://wiki.python.org/moin/BeginnersGuide/Download>`_ * `python >= 3.5 <https://wiki.python.org/moin/BeginnersGuide/Download>`_
* `numpy >= 1.11 <http://www.numpy.org>`_ * `numpy >= 1.13 <http://www.numpy.org>`_
* `scipy >= 0.17 <https://www.scipy.org/scipylib/index.html>`_ * `scipy >= 0.19 <https://www.scipy.org/scipylib/index.html>`_
* `matplotlib >= 1.5 <http://matplotlib.org/>`_ * `matplotlib >= 2.1 <http://matplotlib.org/>`_
* `simpleaudio >= 1.0 <https://github.com/hamiltron/py-simple-audio>`_ * `simpleaudio >= 1.0 <https://github.com/hamiltron/py-simple-audio>`_
* `resampy >= 0.2 <https://github.com/bmcfee/resampy>`_ * `resampy >= 0.2 <https://github.com/bmcfee/resampy>`_
Make sure you Python environment is properly configured. It is recommended to Make sure your Python environment is properly configured. It is recommended to
install `madarrays` in a virtual environment. install ``madarrays`` in a virtual environment.
Release version Release version
--------------- ---------------
First, make sure you have the latest version of pip (the Python package First, make sure you have the latest version of pip (the Python package
manager) installed. If you do not, refer to the `Pip documentation manager) installed. If you do not, refer to the `Pip documentation
<https://pip.pypa.io/en/stable/installing/>`_ and install `pip` first. <https://pip.pypa.io/en/stable/installing/>`_ and install ``pip`` first.
Install the current release with ``pip``:: Install the current release with ``pip``::
......
FROM ubuntu:16.04
MAINTAINER Florent Jaillet
WORKDIR /
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3 \
python3-pip \
python3-wheel \
python3-setuptools \
python3-numpy\
python3-scipy \
python3-matplotlib \
ipython3 \
python3-six \
python3-dev \
gcc \
libasound2-dev \
&& \
apt-get clean
RUN mkdir -p /root/.config/matplotlib && \
echo "backend: pdf" > /root/.config/matplotlib/matplotlibrc
RUN pip3 install llvmlite numba resampy simpleaudio --no-deps
RUN pip3 install pytest pytest-cov pytest-randomly
FROM ubuntu:rolling FROM ubuntu:18.04
MAINTAINER Florent Jaillet MAINTAINER Florent Jaillet
WORKDIR / WORKDIR /
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \ RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
python3 \ python3 \
python3-pip \ python3-pip \
...@@ -10,6 +12,7 @@ RUN apt-get update && \ ...@@ -10,6 +12,7 @@ RUN apt-get update && \
python3-numpy\ python3-numpy\
python3-scipy \ python3-scipy \
python3-matplotlib \ python3-matplotlib \
python3-ltfatpy \
ipython3 \ ipython3 \
python3-six \ python3-six \
python3-numba \ python3-numba \
......
...@@ -169,7 +169,8 @@ class Waveform(MadArray): ...@@ -169,7 +169,8 @@ class Waveform(MadArray):
raise ValueError(errmsg.format(inputs[0].fs, inputs[1].fs)) raise ValueError(errmsg.format(inputs[0].fs, inputs[1].fs))
output = output.view(Waveform) output = output.view(Waveform)
output.fs = inputs[0].fs if isinstance(inputs[0], Waveform) else inputs[1].fs output.fs = inputs[0].fs if isinstance(inputs[0], Waveform) \
else inputs[1].fs
return output return output
...@@ -771,7 +772,7 @@ class Waveform(MadArray): ...@@ -771,7 +772,7 @@ class Waveform(MadArray):
def copy(self): def copy(self):
return Waveform(self) return Waveform(self)
# def __add__(self, other): def __add__(self, other):
if isinstance(other, Waveform) and self.fs != other.fs: if isinstance(other, Waveform) and self.fs != other.fs:
errmsg = 'Waveforms do not have the same fs: {} and {}' errmsg = 'Waveforms do not have the same fs: {} and {}'
raise ValueError(errmsg.format(self.fs, other.fs)) raise ValueError(errmsg.format(self.fs, other.fs))
......
--index-url https://pypi.python.org/simple/ --index-url https://pypi.python.org/simple/
numpy>=1.13 numpy>=1.13
scipy>=0.17 scipy>=0.19
matplotlib>=1.5 matplotlib>=2.1
simpleaudio>=1.0 simpleaudio>=1.0
resampy>=0.2 resampy>=0.2
...@@ -49,7 +49,7 @@ DESCRIPTION = 'Python package for audio data structures with missing entries' ...@@ -49,7 +49,7 @@ DESCRIPTION = 'Python package for audio data structures with missing entries'
LICENSE = 'GNU General Public License v3 (GPLv3)' LICENSE = 'GNU General Public License v3 (GPLv3)'
URL = 'https://gitlab.lis-lab.fr/skmad-suite/{}'.format(NAME) URL = 'https://gitlab.lis-lab.fr/skmad-suite/{}'.format(NAME)
AUTHOR = 'Ronan Hamon, Valentin Emiya, and Florent Jaillet' AUTHOR = 'Ronan Hamon, Valentin Emiya, and Florent Jaillet'
AUTHOR_EMAIL = ('ronan.hamon@lis-lab.fr', 'valentin.emiya@lis-lab.fr', AUTHOR_EMAIL = ('ronan.hamon@lis-lab.fr, valentin.emiya@lis-lab.fr, '
'florent.jaillet@lis-lab.fr') 'florent.jaillet@lis-lab.fr')
INSTALL_REQUIRES = ['matplotlib', INSTALL_REQUIRES = ['matplotlib',
'numpy', 'numpy',
...@@ -71,7 +71,7 @@ CLASSIFIERS = [ ...@@ -71,7 +71,7 @@ CLASSIFIERS = [
'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'] 'Programming Language :: Python :: 3.6']
PYTHON_REQUIRES = '>=3.5' PYTHON_REQUIRES = '>=3.5'
EXTRA_REQUIRE = { EXTRAS_REQUIRE = {
'dev': ['coverage', 'pytest', 'pytest-cov', 'pytest-randomly', 'ipython'], 'dev': ['coverage', 'pytest', 'pytest-cov', 'pytest-randomly', 'ipython'],
'doc': ['sphinx', 'nbsphinx', 'numpydoc', 'sphinx-paramlinks']} 'doc': ['sphinx', 'nbsphinx', 'numpydoc', 'sphinx-paramlinks']}
PROJECT_URLS = {'Bug Reports': URL + '/issues', PROJECT_URLS = {'Bug Reports': URL + '/issues',
...@@ -131,7 +131,7 @@ def setup_package(): ...@@ -131,7 +131,7 @@ def setup_package():
packages=find_packages(exclude=['doc', 'dev']), packages=find_packages(exclude=['doc', 'dev']),
install_requires=INSTALL_REQUIRES, install_requires=INSTALL_REQUIRES,
python_requires=PYTHON_REQUIRES, python_requires=PYTHON_REQUIRES,
extras_require=EXTRA_REQUIRE, extras_require=EXTRAS_REQUIRE,
project_urls=PROJECT_URLS) project_urls=PROJECT_URLS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment