FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Test framework cleanups by mdboom · Pull Request #1056 · matplotlib/matplotlib · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
13 changes: 7 additions & 6 deletions lib/matplotlib/testing/compare.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,13 @@ def comparable_formats():

def convert(filename, cache):
'''
Convert the named file into a png file.
Returns the name of the created file.
Convert the named file into a png file. Returns the name of the
created file.

If *cache* is True, the result of the conversion is cached in
`~/.matplotlib/test_cache/`. The caching is based on a hash of the
exact contents of the input file. The is no limit on the size of
the cache, so it may need to be manually cleared periodically.
'''
base, extension = filename.rsplit('.', 1)
if extension not in converter:
Expand Down Expand Up @@ -278,10 +283,6 @@ def compare_images( expected, actual, tol, in_decorator=False ):

actualImage, expectedImage = crop_to_same(actual, actualImage, expected, expectedImage)

# normalize the images
# expectedImage = image_util.autocontrast( expectedImage, 2 )
# actualImage = image_util.autocontrast( actualImage, 2 )

# compare the resulting image histogram functions
expected_version = version.LooseVersion("1.6")
found_version = version.LooseVersion(np.__version__)
Expand Down

Back | FazBrowse Home | New Git URL