Skip to content

Commit

Permalink
fix travis ci
Browse files Browse the repository at this point in the history
  • Loading branch information
skuschel committed Mar 11, 2015
1 parent 9b8a7b7 commit 157cf25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ virtualenv:
# command to install dependencies
install:
- sudo apt-get update -qq
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then sudo apt-get install python-matplotlib python-scipy python-cython; fi
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then sudo apt-get install python-matplotlib python-scipy cython gcc; fi
- cython --version
- pip install -r pip-requirements.txt

# run tests
Expand Down
2 changes: 1 addition & 1 deletion postpic/cythonfunctions.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def histogram(np.ndarray[np.double_t, ndim=1] data, range=None, int bins=20,
order = 0 returns a normal histogram.
order = 1 uses top hat particle shape.
'''
cdef np.ndarray[np.double_t, ndim=1] ret = np.zeros(bins, dtype=np.double);
cdef np.ndarray[np.double_t, ndim=1] ret = np.zeros(bins, dtype=np.double)
cdef double min, max
if range is None:
min = np.min(data)
Expand Down

0 comments on commit 157cf25

Please sign in to comment.