Skip to content

Commit

Permalink
Merge pull request #1380 from kohr-h/repr_tool
Browse files Browse the repository at this point in the history
ENH: add utility functions for repr printing
  • Loading branch information
kohr-h authored Jun 25, 2018
2 parents ffd0ee8 + 7517012 commit 4388ee0
Show file tree
Hide file tree
Showing 4 changed files with 626 additions and 34 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@ language: python
matrix:
include:
- python: 2.7
env: NUMPY_VERSION=1.13
env: NUMPY_VERSION='1.14.*'

- python: 3.6
env: NUMPY_VERSION=1.10.1

- python: 3.6
env: NUMPY_VERSION=1.12
env: NUMPY_VERSION='1.12.*'

- python: 3.6
env: NUMPY_VERSION=1.13 COVERALLS=true
env: NUMPY_VERSION='1.13.*'

- python: 3.6
env: NUMPY_VERSION=1.13 SKIP_TESTS=true BUILD_DOCS=true
env: NUMPY_VERSION='1.14.*' COVERALLS=true

- python: 3.6
env: NUMPY_VERSION='1.14.*' SKIP_TESTS=true BUILD_DOCS=true

sudo: false

Expand Down
7 changes: 5 additions & 2 deletions odl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014-2017 The ODL contributors
# Copyright 2014-2018 The ODL contributors
#
# This file is part of ODL.
#
Expand Down Expand Up @@ -32,12 +32,15 @@
)

# Set old Numpy printing behavior as to not invalidate all doctests.
# TODO: switch to new behavior when Numpy 1.14 is minimum
# TODO(kohr-h): switch to new behavior when Numpy 1.14 is minimum
try:
np.set_printoptions(legacy='1.13')
except TypeError:
pass

# Set printing linewidth to 71 to allow method docstrings to not extend
# beyond 79 characters (2 times indent of 4)
np.set_printoptions(linewidth=71)

# Propagate names defined in` __all__` of all "core" subpackages into
# the top-level namespace
Expand Down
Loading

0 comments on commit 4388ee0

Please sign in to comment.