Skip to content
Closed
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
37b06f4
Added notebook for doing development work on IO-Cleanup.
Feb 17, 2017
feb68f5
Added .eggs directory to gitignore.
Feb 17, 2017
5e2d95d
Broke out the numerator/denominator cleanup function into a separate …
Feb 18, 2017
cd7f596
Merge remote-tracking branch 'upstream/master'
Feb 18, 2017
509ff8e
Removed test notebook
Feb 18, 2017
d44489f
Renamed cleanPart to _cleanPart since it is an internal function, as …
Feb 18, 2017
d8d6b02
Fix minreal not returning a discrete TF
rssalessio Mar 26, 2017
585c028
change if to None. add tests
rssalessio Mar 29, 2017
d4fc2d0
BLD: travis update for new/old scipy + improved slycot
murrayrm Dec 23, 2017
11c99ef
Fixes for SciPy 1.0 compatibility
murrayrm Dec 23, 2017
b6e378f
BLD: updated Travis CI script to build slycot from source
murrayrm Dec 24, 2017
087046f
DOC: fix conda-recipe and make_version for conda v3
murrayrm Dec 29, 2017
b19ca11
DOC: update docstrings for system creation (see PR #163)
murrayrm Dec 29, 2017
bde823b
DOC: add more info on class constructors
murrayrm Dec 29, 2017
b881b77
DOC: improved docstrings for fucntions with variable arguments
murrayrm Dec 29, 2017
b1437f0
unit test from kangwonlee commit facfe9c49d79227dd3bdcd22af9d0aa917ac…
murrayrm Dec 29, 2017
10cdb7a
TST: renamed unit test from kangwonlee
murrayrm Dec 29, 2017
af8837e
Merge branch 'InputSanitization' of https://github.com/jed-frey/pytho…
murrayrm Dec 29, 2017
b697a08
Merge branch 'jed-frey-InputSanitization' into sstf_input_sanitization
murrayrm Dec 29, 2017
68b5dd1
address additional comments from roryyorke in PR #135
murrayrm Dec 29, 2017
314c4eb
DOC: fixed typos + address @roryyorke feedback
murrayrm Dec 30, 2017
aa6e0df
replace np.pi with math.pi (avoids Mock() issues) + docstring update …
murrayrm Dec 30, 2017
11a6264
Merge pull request #1 from murrayrm/sstf_input_sanitization
Dec 31, 2017
fbcdc21
Use slycot's tb05ad for faster and more accurate frequency response e…
rabraker Jan 2, 2018
7d8bc65
Merge pull request #169 from murrayrm/fix_travis
murrayrm Jan 2, 2018
9457031
Merge pull request #167 from murrayrm/fix_conda
murrayrm Jan 2, 2018
c4f1c34
Merge pull request #170 from murrayrm/fix_scipy-1.0
murrayrm Jan 2, 2018
bbb902f
Merge branch 'master' into InputSanitization
murrayrm Jan 2, 2018
8c997ff
Merge branch 'master' into InputSanitization
murrayrm Jan 2, 2018
a5094e2
Merge pull request #135 from jed-frey/InputSanitization
murrayrm Jan 2, 2018
6e3c2dd
Merge branch 'master' into statesp_constructor_doc
murrayrm Jan 2, 2018
2635889
Merge branch 'master' into statesp_constructor_doc
murrayrm Jan 2, 2018
f890a88
Merge pull request #171 from murrayrm/statesp_constructor_doc
murrayrm Jan 2, 2018
33bebc1
Merge pull request #140 from rssalessio/master
murrayrm Jan 2, 2018
66c0088
Use slycot's tb05ad for faster and more accurate frequency response e…
rabraker Jan 2, 2018
308d8b5
Merge branch 'freqresp_tb05ad' of github.com:rabraker/python-control …
rabraker Jan 2, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 34 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,31 @@ cache:
- $HOME/.local

python:
- "2.7"
- "3.3"
- "3.4"
- "3.6"
- "3.5"
- "2.7"

# Test against multiple version of SciPy, with and without slycot
#
# Because there were significant changes in SciPy between v0 and v1, we
# test against both of these using the Travis CI environment capability
#
# We also want to test with and without slycot
env:
- SCIPY=scipy SLYCOT=slycot # default, with slycot
- SCIPY=scipy SLYCOT= # default, w/out slycot
- SCIPY="scipy==0.19.1" SLYCOT= # legacy support, w/out slycot

# install required system libraries
before_install:
# Install gfortran for testing slycot; use apt-get instead of conda in
# order to include the proper CXXABI dependency (updated in GCC 4.9)
# Also need to include liblapack here, to make sure paths are right
- if [[ "$SLYCOT" != "" ]]; then
sudo apt-get update -qq;
sudo apt-get install gfortran liblapack-dev;
fi
# Install display manager to allow testing of plotting functions
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# use miniconda to install numpy/scipy, to avoid lengthy build from source
Expand All @@ -29,27 +47,30 @@ before_install:
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# conda-build must be installed in the conda root environment
- conda install conda-build
- conda config --add channels python-control
- conda info -a
- conda create -q -n test-environment python="$TRAVIS_PYTHON_VERSION" pip coverage
- source activate test-environment
# coveralls not in conda repos
# Make sure to look in the right place for python libraries (for slycot)
- export LIBRARY_PATH="$HOME/miniconda/envs/test-environment/lib"
# coveralls not in conda repos => install via pip instead
- pip install coveralls

# Install packages
install:
- conda build --python "$TRAVIS_PYTHON_VERSION" conda-recipe
- conda install control --use-local
# Install packages needed by python-control
- conda install $SCIPY matplotlib
# Build slycot from source
# For python 3, need to provide pointer to python library
#! git clone https://github.com/repagh/Slycot.git slycot;
- if [[ "$SLYCOT" != "" ]]; then
git clone https://github.com/python-control/Slycot.git slycot;
cd slycot; python setup.py install; cd ..;
fi

# command to run tests
script:
# Before installing Slycot
- python setup.py test

# Now, get and use Slycot
- conda install slycot
- 'if [ $SLYCOT != "" ]; then python -c "import slycot"; fi'
- coverage run setup.py test

after_success:
Expand Down
5 changes: 5 additions & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
package:
name: control
version: {{ GIT_DESCRIBE_TAG }}

source:
git_url: ../

build:
number: {{ GIT_DESCRIBE_NUMBER }}
script:
- cd $RECIPE_DIR/..
- $PYTHON make_version.py
Expand Down
35 changes: 21 additions & 14 deletions make_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# make_version.py - generate version information
#
# Author: Clancy Rowley
# Date: 2 Apr 2015
# Modified: Richard M. Murray, 28 Dec 2017
#
# This script is used to create the version information for the python-
# control package. The version information is now generated directly from
# tags in the git repository. Now, *before* running setup.py, one runs
#
# python make_version.py
#
# and this generates a file with the version information. This is copied
# from binstar (https://github.com/Binstar/binstar) and seems to work well.
#
# The original version of this script also created version information for
# conda, but this stopped working when conda v3 was released. Instead, we
# now use jinja templates in conda-recipe to create the conda information.
# The current version information is used in setup.py, control/__init__.py,
# and doc/conf.py (for sphinx).

from subprocess import check_output
import os

Expand Down Expand Up @@ -33,19 +54,5 @@ def main():
fd.write('__version__ = "%s.post%s"\n' % (version, build))
fd.write('__commit__ = "%s"\n' % (commit))

# Write files for conda version number
SRC_DIR = os.environ.get('SRC_DIR', '.')
conda_version_path = os.path.join(SRC_DIR, '__conda_version__.txt')
print("Writing %s" % conda_version_path)
with open(conda_version_path, 'w') as conda_version:
conda_version.write(version)

conda_buildnum_path = os.path.join(SRC_DIR, '__conda_buildnum__.txt')
print("Writing %s" % conda_buildnum_path)

with open(conda_buildnum_path, 'w') as conda_buildnum:
conda_buildnum.write(build)


if __name__ == '__main__':
main()