larray.compare¶
-
larray.compare(*args, **kwargs)[source]¶ Opens a new comparator window, comparing arrays or sessions.
Parameters: *args : LArrays or Sessions
Arrays or sessions to compare.
title : str, optional
Title for the window. Defaults to ‘’.
names : list of str, optional
Names for arrays or sessions being compared. Defaults to the name of the first objects found in the caller namespace which correspond to the passed objects.
depth : int, optional
Stack depth where to look for variables. Defaults to 0 (where this function was called).
Examples
>>> a1 = ndtest(3) >>> a2 = ndtest(3) + 1 >>> compare(a1, a2, title='first comparison') >>> compare(a1 + 1, a2, title='second comparison', names=['a1+1', 'a2'])