https://github.com/RadioAstronomySoftwareGroup/pyuvdata
Revision ce3b8b45613b5f23102afc2b5c1a4c80d6b3ec21 authored by Bryna Hazelton on 03 June 2019, 17:41:01 UTC, committed by GitHub on 03 June 2019, 17:41:01 UTC
* update some docstrings in uvdata.py to numpy style * update more docstrings * fix bugs introduced by eliminating *args and **kwargs, add tests * fix handling of multiple input parameters with the same type/description * fix a bug from the tutorial, add tests to catch it * fix tests to actually cover passing _key2inds a nested tuple * un-reorder uvdata methods for ease of PR and rebasing will make issue to re-reorder * improve returns section handling * Fix docstring errors Adam found * fix key types everywhere * fix issues introduced in rebase * fix another rebase mistake * and another rebase fix
1 parent 0433774
Tip revision: ce3b8b45613b5f23102afc2b5c1a4c80d6b3ec21 authored by Bryna Hazelton on 03 June 2019, 17:41:01 UTC
Numpy style docstrings (#604)
Numpy style docstrings (#604)
Tip revision: ce3b8b4
.travis.yml
sudo: required
dist: trusty
os:
- osx
env:
global:
- COVERALLS_PARALLEL=true
matrix:
- PYTHON_VERSION=2.7
- PYTHON_VERSION=3.6
- PYTHON_VERSION=3.7
install:
# ensure that we have the full tag information available for version.py
- git fetch --unshallow --tags
# We need to get the right miniconda per os and python version
# (using the right python version saves us some downloading time)
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update;
if [[ "$PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
else
if [[ "$PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.anaconda.com/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda create -q -n testenv python="$PYTHON_VERSION"
- source activate testenv
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
conda install -c defaults -y 'libgfortran =3.0.0' 'libgfortran-ng =7.2.0';
else
conda install -c defaults -y 'libgfortran =3.0.0' libgfortran-ng;
fi
- conda config --add channels conda-forge
# Useful for debugging any issues with conda
- conda info -a
# install dependencies
- conda install numpy scipy astropy pip h5py six healpy python-casacore pyyaml pycodestyle coverage python="$PYTHON_VERSION" pytest-cov
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
conda install gcc_linux-64 gxx_linux-64;
fi
- conda list
- python --version
# check that the python version matches the desired one; exit immediately if not
- PYVER=`python -c "from __future__ import print_function; import sys; print('{:d}.{:d}'.format(sys.version_info.major, sys.version_info.minor))"`
- if [[ $PYVER != $PYTHON_VERSION ]]; then
exit 1;
fi
script:
- python setup.py build_ext --force --inplace
- python -m pytest pyuvdata --cov=pyuvdata --cov-config=.coveragerc --cov-report xml:./coverage.xml --cov-report term
Computing file changes ...