Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias Import alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore NameLoad FunctionDef arguments args defaults body Global identifier If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str If CompareEq NameLoad Str body Assign NameStore Call NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad NameLoad TryExcept body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpDiv NameLoad NameLoad If BoolOpOr CompareNotEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad CompareLt SubscriptLoad NameLoad Index Num Num body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad SubscriptLoad NameLoad Index Num keyword TupleLoad Num Num attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body If CompareIn NameLoad Call NameLoad NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Print BinOpMod Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad orelse If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad orelse If CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad Raise decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad NameLoad NameLoad NameLoad body Expr Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assert CompareLtE Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore CompareGtE Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assert CompareLtE Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGt AttributeLoad NameLoad attr Num body Assert CompareLtE Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGt AttributeLoad NameLoad attr Num body Assert CompareLtE Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body With Call AttributeLoad NameLoad attr keyword Str body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Index TupleLoad Num Num Assert CompareGtE NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body ImportFrom alias Assign TupleStore NameStore NameStore Call NameLoad ListLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore TupleLoad BinOpAdd Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num BinOpAdd BinOpAdd BinOpAdd SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad ExtSlice Ellipsis Slice Num Num Assign SubscriptStore NameLoad ExtSlice Ellipsis Index Num Num Assign SubscriptStore NameLoad ExtSlice Slice Num BinOpAdd Num SubscriptLoad NameLoad Index Num Slice Num BinOpAdd Num SubscriptLoad NameLoad Index Num Slice SubscriptLoad NameLoad Index Num NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Num BinOpAdd Num SubscriptLoad NameLoad Index Num Slice BinOpAdd SubscriptLoad NameLoad Index Num Num BinOpAdd BinOpAdd SubscriptLoad NameLoad Index Num Num SubscriptLoad NameLoad Index Num Slice SubscriptLoad NameLoad Index Num NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Num BinOpAdd Num SubscriptLoad AttributeLoad NameLoad attr Index Num Slice BinOpSub UnaryOpUSub SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Print BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print BinOpMod Str TupleLoad NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Print BinOpMod Str NameLoad Print NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num keyword NameLoad Assign SubscriptStore NameLoad ExtSlice Ellipsis Slice Num Num Assign SubscriptStore NameLoad ExtSlice Ellipsis Index Num Num AugAssignAdd SubscriptStore NameLoad ExtSlice Slice SubscriptLoad NameLoad Index Num Slice SubscriptLoad NameLoad Index Num Slice Call NameLoad SubscriptLoad NameLoad Index Num Num SubscriptLoad NameLoad ExtSlice Ellipsis Slice Num AugAssignSub SubscriptStore NameLoad ExtSlice Slice SubscriptLoad NameLoad Index Num Slice SubscriptLoad NameLoad Index Num Slice Call NameLoad SubscriptLoad NameLoad Index Num Num SubscriptLoad NameLoad ExtSlice Ellipsis Slice Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Num Num attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str If Call NameLoad NameLoad Str body If UnaryOpNot Call NameLoad NameLoad Str body Assign NameStore BinOpMult ListLoad NameLoad Call NameLoad NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad If CompareLtE NameLoad Num body Return NameLoad Assign NameStore Call NameLoad BinOpDiv SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num NameLoad Assign NameStore BinOpMult ListLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Call NameLoad Num BinOpMult NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword TupleLoad Num Num Assign AttributeStore NameLoad attr TupleLoad Num Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore TupleLoad Num Num Num Num Assign AttributeStore NameLoad attr TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Num keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Num keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Num keyword NameLoad Assign NameStore ListLoad Str Str Str For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad keyword NameLoad keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Num keyword Num keyword Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num keyword AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr NameLoad Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr NameLoad Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr While NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIs AttributeLoad NameLoad attr NameLoad body Pass orelse If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Break orelse If CompareIn Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Num For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr TupleLoad Num Num Num keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore BinOpAdd NameLoad ListLoad Str Str Str Print Call AttributeLoad Str attr NameLoad Expr Call NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad ExceptHandler type NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Raise Call NameLoad BinOpMod Str NameLoad orelse Raise If CompareNotEq Call NameLoad NameLoad Str NameLoad body Print BinOpMod Str NameLoad Expr Call NameLoad BinOpAdd NameLoad ListLoad Str NameLoad orelse Print BinOpMod Str NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad BinOpAdd NameLoad ListLoad Str BinOpAdd NameLoad ListLoad Str Str Str NameLoad BinOpAdd NameLoad ListLoad Str Str Str NameLoad Str BinOpAdd NameLoad ListLoad Str Str Str Str orelse Assign NameStore ListLoad ListLoad Str Str NameLoad NameLoad For NameStore NameLoad body Print Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad Num body Continue Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad Str BinOpMod Str NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd Call NameLoad NameLoad ListLoad Str Str Return SubscriptLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd Call NameLoad NameLoad ListLoad Str NameLoad TryExcept body Assign NameStore SubscriptLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assert CompareEq SubscriptLoad NameLoad Slice Num Str Return SubscriptLoad NameLoad Slice Num decorator_list
N/A N/A 
Procedure for unit-testing with images:

1. Run unit tests at least once; this initializes a git clone of
   vispy/test-data in config['test_data_path']. This path is
   `~/.vispy/test-data` unless the config variable has been modified.
   The config file is located at `vispy/vispy/util/config.py`

2. Run individual test scripts with the --vispy-audit flag:

       $ python vispy/visuals/tests/test_ellipse.py --vispy-audit

   Any failing tests will
   display the test results, standard image, and the differences between the
   two. If the test result is bad, then press (f)ail. If the test result is
   good, then press (p)ass and the new image will be saved to the test-data
   directory.

3. After adding or changing test images, create a new commit:

        $ cd ~/.vispy/test-data
        $ git add ...
        $ git commit -a

4. Look up the most recent tag name from the `test_data_tag` variable in
   get_test_data_repo() below. Increment the tag name by 1 in the function
   and create a new tag in the test-data repository:

        $ git tag test-data-NNN
        $ git push --tags origin master

    This tag is used to ensure that each vispy commit is linked to a specific
    commit in the test-data repository. This makes it possible to push new
    commits to the test-data repository without interfering with existing
    tests, and also allows unit tests to continue working on older vispy
    versions.

    Finally, update the tag name in ``get_test_data_repo`` to the new name.

 N/A time N/A os N/A sys N/A inspect N/A base64 subprocess check_call CalledProcessError N/A numpy np ext.six.moves http_client httplib ext.six.moves urllib_parse urllib N/A scene config io read_png write_png gloo.util _screenshot util run_subprocess N/A tester None _get_tester N/A N/A N/A N/A N/A tester N/A N/A tester None N/A N/A tester N/A ImageTester N/A tester N/A assert_image_approved N/A N/A image standard_file message N/A None kwargs N/A N/A Check that an image test result matches a pre-approved standard.

    If the result does not match, then the user can optionally invoke a GUI
    to compare the images and decide whether to fail the test or save the new
    image as the standard.

    This function will automatically clone the test-data repository into
    ~/.vispy/test-data. However, it is up to the user to ensure this repository
    is kept up to date and to commit/push new images after they are saved.

    Run the test with python <test-path> --vispy-audit-tests to bring up
    the auditing GUI.

    Parameters
    ----------
    image : (h, w, 4) ndarray or 'screenshot'
        The test result to check
    standard_file : str
        The name of the approved test image to check against. This file name
        is relative to the root of the vispy test-data repository and will
        be automatically fetched.
    message : str
        A string description of the image. It is recommended to describe
        specific features that an auditor should look for when deciding whether
        to fail a test.

    Extra keyword arguments are used to set the thresholds for automatic image
    comparison (see ``assert_image_match()``).
     N/A N/A image screenshot N/A N/A image N/A _screenshot alpha True N/A N/A message None N/A N/A code N/A N/A N/A N/A inspect currentframe f_back f_code N/A message N/A %s::%s N/A N/A code co_filename N/A code co_name N/A data_path N/A get_test_data_repo N/A std_file N/A N/A N/A os path join data_path standard_file N/A N/A N/A N/A N/A os path isfile std_file N/A N/A std_image None N/A N/A std_image N/A read_png std_file N/A N/A N/A N/A N/A image shape N/A std_image shape N/A N/A ims1 N/A N/A N/A N/A np array N/A image shape astype float N/A ims2 N/A N/A N/A N/A np array N/A std_image shape astype float N/A sr N/A ims1 ims2 N/A N/A N/A N/A sr N/A 0 N/A sr N/A 1 N/A N/A N/A np allclose sr N/A N/A np round sr N/A N/A sr N/A 0 1 N/A N/A N/A TypeError N/A Test result shape %s is not an integer factor larger than standard image shape %s. N/A ims1 ims2 N/A sr N/A N/A N/A N/A np round sr astype int N/A image N/A N/A N/A downsample image N/A sr N/A 0 axis N/A 0 1 astype N/A image dtype N/A N/A assert_image_match image std_image kwargs N/A N/A N/A Exception N/A N/A N/A standard_file N/A git_status data_path N/A N/A N/A 

WARNING: unit test failed against modified standard image %s.
To revert this file, run `cd %s; git checkout %s`
 N/A std_file data_path standard_file N/A N/A config N/A audit_tests N/A N/A N/A N/A sys excepthook N/A N/A sys exc_info N/A N/A N/A N/A _get_tester test image std_image message N/A std_path N/A N/A N/A os path dirname std_file N/A N/A Saving new standard image to "%s" std_file N/A N/A N/A N/A N/A os path isdir std_path N/A N/A N/A N/A os makedirs std_path N/A N/A write_png std_file image N/A N/A N/A std_image None N/A N/A N/A Exception N/A Test standard %s does not exist. std_file N/A N/A N/A N/A N/A os getenv TRAVIS None N/A N/A N/A _save_failed_test image std_image standard_file N/A N/A assert_image_match N/A N/A im1 im2 min_corr px_threshold px_count max_px_diff avg_px_diff img_diff N/A 0.9 50.0 None None None None N/A N/A Check that two images match.

    Images that differ in shape or dtype will fail unconditionally.
    Further tests for similarity depend on the arguments supplied.

    Parameters
    ----------
    im1 : (h, w, 4) ndarray
        Test output image
    im2 : (h, w, 4) ndarray
        Test standard image
    min_corr : float or None
        Minimum allowed correlation coefficient between corresponding image
        values (see numpy.corrcoef)
    px_threshold : float
        Minimum value difference at which two pixels are considered different
    px_count : int or None
        Maximum number of pixels that may differ
    max_px_diff : float or None
        Maximum allowed difference between pixels
    avg_px_diff : float or None
        Average allowed difference between pixels
    img_diff : float or None
        Maximum allowed summed difference between images

     N/A N/A N/A im1 ndim 3 N/A N/A N/A N/A im1 shape N/A 2 4 N/A N/A N/A im1 dtype N/A im2 dtype N/A diff N/A N/A N/A im1 astype float N/A N/A im2 astype float N/A N/A img_diff None N/A N/A N/A N/A N/A N/A N/A np abs diff sum img_diff N/A pxdiff N/A N/A diff max axis 2 N/A mask N/A N/A N/A np abs pxdiff px_threshold N/A N/A px_count None N/A N/A N/A N/A N/A mask sum px_count N/A masked_diff N/A diff N/A mask N/A N/A N/A max_px_diff None N/A N/A masked_diff size 0 N/A N/A N/A N/A N/A masked_diff max max_px_diff N/A N/A N/A avg_px_diff None N/A N/A masked_diff size 0 N/A N/A N/A N/A N/A masked_diff mean avg_px_diff N/A N/A min_corr None N/A N/A N/A N/A np errstate invalid ignore N/A N/A corr N/A N/A N/A np corrcoef N/A N/A im1 ravel N/A N/A im2 ravel N/A N/A 0 1 N/A N/A corr min_corr N/A _save_failed_test N/A N/A data expect filename N/A N/A io _make_png N/A N/A commit error N/A run_subprocess N/A git rev-parse HEAD N/A name N/A N/A filename split / N/A N/A N/A name insert -1 N/A N/A commit strip N/A filename N/A N/A / join name N/A host data.vispy.org N/A ds N/A data shape N/A es N/A expect shape N/A shape N/A N/A N/A max N/A ds N/A 0 N/A es N/A 0 4 N/A N/A N/A N/A ds N/A 1 N/A es N/A 1 8 N/A max N/A ds N/A 1 N/A es N/A 1 4 N/A img N/A N/A np empty shape dtype N/A np ubyte N/A N/A img N/A N/A N/A 3 100 N/A N/A img N/A N/A N/A 3 255 N/A N/A img N/A N/A 2 N/A 2 N/A ds N/A 0 N/A 2 N/A 2 N/A ds N/A 1 N/A N/A ds N/A 2 data N/A N/A img N/A N/A 2 N/A 2 N/A es N/A 0 N/A N/A N/A ds N/A 1 4 N/A N/A N/A ds N/A 1 4 N/A es N/A 1 N/A N/A es N/A 2 expect N/A diff N/A make_diff_image data expect N/A N/A img N/A N/A 2 N/A 2 N/A N/A diff shape N/A 0 N/A N/A N/A N/A N/A diff shape N/A 1 2 -2 diff N/A png N/A _make_png img N/A conn N/A N/A httplib HTTPConnection host N/A req N/A N/A urllib urlencode N/A name data filename N/A N/A base64 b64encode png N/A N/A N/A conn request POST /upload.py req N/A response N/A N/A N/A N/A conn getresponse read N/A N/A N/A conn close N/A N/A 
Image comparison failed. Test result: %s %s   Expected result: %s %s N/A N/A data shape N/A data dtype N/A expect shape N/A expect dtype N/A N/A Uploaded to: 
http://%s/data/%s N/A host filename N/A N/A N/A N/A response startswith OK N/A N/A N/A WARNING: Error uploading data to %s host N/A response N/A make_diff_image N/A N/A im1 im2 N/A N/A N/A Return image array showing the differences between im1 and im2.

    Handles images of different shape. Alpha channels are not compared.
     N/A ds N/A im1 shape N/A es N/A im2 shape N/A diff N/A N/A np empty N/A N/A max N/A ds N/A 0 N/A es N/A 0 N/A max N/A ds N/A 1 N/A es N/A 1 4 dtype int N/A N/A diff N/A N/A N/A 3 128 N/A N/A diff N/A N/A N/A 3 255 N/A N/A diff N/A N/A N/A ds N/A 0 N/A N/A ds N/A 1 N/A N/A min N/A ds N/A 2 3 N/A im1 N/A N/A N/A 3 N/A N/A diff N/A N/A N/A es N/A 0 N/A N/A es N/A 1 N/A N/A min N/A es N/A 2 3 N/A im2 N/A N/A N/A 3 N/A diff N/A N/A N/A N/A np clip diff 0 255 astype N/A np ubyte N/A diff N/A downsample N/A N/A data n axis N/A 0 N/A N/A Downsample by averaging points together across axis.
    If multiple axes are specified, runs once per axis.
     N/A N/A hasattr axis __len__ N/A N/A N/A N/A hasattr n __len__ N/A N/A n N/A N/A n N/A len axis N/A i N/A range N/A len axis N/A N/A data N/A downsample data N/A n N/A i N/A axis N/A i N/A data N/A N/A n 1 N/A N/A data N/A nPts N/A int N/A N/A N/A data shape N/A axis n N/A s N/A list N/A data shape N/A N/A s N/A axis nPts N/A N/A N/A s insert N/A axis 1 n N/A sl N/A N/A N/A slice None N/A data ndim N/A N/A sl N/A axis N/A slice 0 N/A nPts n N/A d1 N/A data N/A N/A tuple sl N/A N/A d1 shape N/A tuple s N/A d2 N/A N/A d1 mean N/A axis 1 N/A d2 N/A ImageTester N/A N/A scene SceneCanvas N/A N/A Graphical interface for auditing image comparison tests.
     __init__ N/A N/A self N/A N/A N/A N/A self grid None N/A N/A self views None N/A N/A self console None N/A N/A self last_key None N/A N/A N/A N/A scene SceneCanvas __init__ self size N/A 1000 800 N/A N/A self bgcolor N/A 0.1 0.1 0.1 1 N/A N/A self grid N/A N/A N/A self central_widget add_grid N/A border N/A 0.3 0.3 0.3 1 N/A N/A self views N/A N/A N/A N/A self grid add_view row 0 col 0 border_color border N/A N/A N/A self grid add_view row 0 col 1 border_color border N/A N/A N/A self grid add_view row 0 col 2 border_color border N/A label_text N/A test output standard diff N/A N/A i v N/A enumerate N/A self views N/A N/A N/A v camera panzoom N/A N/A N/A v camera aspect 1 N/A N/A N/A v camera flip N/A False True N/A N/A N/A v unfreeze N/A N/A v image N/A N/A scene Image parent N/A v scene N/A N/A v label N/A N/A scene Text N/A label_text N/A i parent v color yellow anchor_x left anchor_y top N/A N/A N/A v freeze N/A N/A N/A N/A N/A N/A self views N/A 1 camera link N/A N/A N/A self views N/A 0 camera N/A N/A N/A N/A N/A N/A self views N/A 2 camera link N/A N/A N/A self views N/A 0 camera N/A N/A self console N/A N/A scene Console text_color white border_color border N/A N/A N/A N/A self grid add_widget N/A self console row 1 col 0 col_span 3 N/A test N/A N/A self im1 im2 message N/A N/A N/A N/A N/A self show N/A N/A N/A N/A self console write ------------------ N/A N/A N/A N/A self console write message N/A N/A im2 None N/A N/A N/A N/A N/A self console write N/A Image1: %s %s   Image2: [no standard] N/A N/A im1 shape N/A im1 dtype N/A im2 N/A N/A np zeros N/A 1 1 3 dtype N/A np ubyte N/A N/A N/A N/A N/A self console write N/A Image1: %s %s   Image2: %s %s N/A N/A im1 shape N/A im1 dtype N/A im2 shape N/A im2 dtype N/A N/A N/A N/A self console write (P)ass or (F)ail this test? N/A N/A N/A N/A N/A N/A self views N/A 0 image set_data im1 N/A N/A N/A N/A N/A N/A self views N/A 1 image set_data im2 N/A diff N/A make_diff_image im1 im2 N/A N/A N/A N/A N/A N/A self views N/A 2 image set_data diff N/A N/A N/A N/A N/A N/A self views N/A 0 camera set_range N/A True N/A N/A N/A N/A N/A self app process_events N/A N/A N/A self last_key None N/A N/A N/A N/A N/A N/A N/A N/A self last_key lower p N/A N/A N/A N/A N/A self console write PASS N/A N/A N/A N/A N/A N/A N/A self last_key lower N/A f esc N/A N/A N/A N/A N/A self console write FAIL N/A N/A Exception User rejected test result. N/A N/A N/A time sleep 0.03 N/A v N/A self views N/A N/A N/A N/A N/A v image set_data N/A N/A np zeros N/A 1 1 3 dtype N/A np ubyte N/A on_key_press N/A N/A self event N/A N/A N/A N/A self last_key N/A N/A event key name N/A N/A get_test_data_repo N/A N/A N/A N/A N/A Return the path to a git repository with the required commit checked
    out.

    If the repository does not exist, then it is cloned from
    https://github.com/vispy/test-data. If the repository already exists
    then the required commit is checked out.
     N/A test_data_tag test-data-5 N/A data_path N/A config N/A test_data_path N/A git_path https://github.com/vispy/test-data N/A gitbase N/A git_cmd_base data_path N/A N/A N/A N/A os path isdir data_path N/A N/A N/A N/A tag_commit N/A git_commit_id data_path test_data_tag N/A N/A N/A NameError N/A N/A cmd N/A gitbase N/A fetch --tags origin N/A N/A N/A join cmd N/A N/A check_call cmd N/A N/A N/A tag_commit N/A git_commit_id data_path test_data_tag N/A N/A N/A NameError N/A N/A N/A Exception N/A Could not find tag '%s' in test-data repo at %s N/A test_data_tag data_path N/A N/A Exception N/A N/A N/A N/A N/A N/A os path exists N/A N/A N/A os path join data_path .git N/A N/A N/A Exception N/A Directory '%s' does not appear to be a git repository. Please remove this directory. data_path N/A N/A N/A N/A N/A git_commit_id data_path HEAD tag_commit N/A N/A N/A Checking out test-data tag '%s' test_data_tag N/A N/A check_call N/A gitbase N/A checkout test_data_tag N/A N/A N/A Attempting to create git clone of test data repo in %s.. data_path N/A parent_path N/A N/A N/A N/A os path split data_path N/A 0 N/A N/A N/A N/A N/A os path isdir parent_path N/A N/A N/A N/A os makedirs parent_path N/A N/A N/A N/A os getenv TRAVIS None N/A N/A N/A N/A os makedirs data_path N/A cmds N/A N/A gitbase N/A init N/A gitbase N/A remote add origin git_path N/A gitbase N/A fetch --tags origin test_data_tag --depth=1 N/A gitbase N/A checkout -b master FETCH_HEAD N/A N/A cmds N/A N/A git clone git_path data_path N/A cmd cmds N/A N/A N/A N/A join cmd N/A rval N/A check_call cmd N/A N/A rval 0 N/A N/A N/A N/A RuntimeError N/A Test data path '%s' does not exist and could not be created with git. Either create a git clone of %s or set the test_data_path variable to an existing clone. N/A data_path git_path N/A data_path N/A git_cmd_base N/A N/A path N/A N/A N/A N/A git N/A --git-dir=%s/.git path N/A --work-tree=%s path N/A git_status N/A N/A path N/A N/A N/A Return a string listing all changes to the working tree in a git
    repository.
     N/A cmd N/A N/A git_cmd_base path N/A status --porcelain N/A N/A N/A run_subprocess cmd stderr None universal_newlines True N/A 0 N/A git_commit_id N/A N/A path ref N/A N/A N/A Return the commit id of *ref* in the git repository at *path*.
     N/A cmd N/A N/A git_cmd_base path N/A show ref N/A N/A N/A output N/A N/A run_subprocess cmd stderr None universal_newlines True N/A 0 N/A N/A N/A CalledProcessError N/A N/A N/A NameError N/A Unknown git reference '%s' ref N/A commit N/A N/A N/A output split N/A 0 N/A N/A N/A commit N/A 7 commit  N/A N/A commit N/A 7 N/A