Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
matplotlib
/
tests
/
File Content:
test_mlab.pyc
� _�3Lc @ sk d d l Z d d l j Z d d l Z d d l m Z d � Z d � Z e e � d � � Z d � Z d S( i����N( t raisesc C sr t j j � } t j | � } t j | j d d � s= t � t j | j d d � d d � f d � sn t � d S( Ni g ( t mlabt PCAt _get_colineart npt allcloset fracst AssertionErrort Y( t at pca( ( sM /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_mlab.pyt test_colinear_pca s c C s t j d d t j f d t j f d t j f g � } d | d d <d | d d <d | d d <t j d d � } t j | | � | j d � t j | � } | j � t j | d | d � s� t � t j | d | d � s� t � t j | d | d � st � d S( Nic t xt yt ti i i i t suffixt csv( ic ( R t recarrayt floatt tempfilet TemporaryFileR t rec2csvt seekt csv2rect closeR R ( t expectedt fdt actual( ( sM /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_mlab.pyt test_recarray_csv_roundtrip s - c C sP t j d d t j f d t j f g � } t j d d � } t j | | � d S( Nic i R R R R ( ic i ( R R R R R R R ( t badR ( ( sM /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_mlab.pyt test_rec2csv_bad_shape s *c C sP d d d g } t j | d � t j | � k s6 t � d d d d g } t j | d � t j | � k so t � d d d d d d d d d d d d d d d d d d d d d d d g } d d d g } d d d g } t j | | � } t j | | � st � xG t | | � D]6 \ } } t j | | � } t j | | � st � qWd S( Ni i i i2 i i i i i i i iK id g @( R t prctileR t medianR R t zip( R t ob1t pR R t pit expectedit actuali( ( sM /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_mlab.pyt test_prctile$ s ''K( t numpyR t matplotlib.mlabR R t nose.toolsR R R t ValueErrorR R'