Ñò \ÐKc @ s d Z d Z d Z d Z d d k Z d d k l Z d d k l Z l Z d d k Z d d k Td d k i Z d d k l Z l Z d d k l Z l Z l Z l Z l Z l Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ e d j o e ƒ n d S( s] Tests suite for mrecords. :author: Pierre Gerard-Marchant :contact: pierregm_at_uga_dot_edu s5 Pierre GF Gerard-Marchant ($Author: jarrod.millman $)s $Revision: 3473 $s5 $Date: 2007-10-29 17:18:13 +0200 (Mon, 29 Oct 2007) $iÿÿÿÿN( t recarray( t fromrecordst fromarrays( t *( t maskedt nomask( t MaskedRecordst mrecarrayR t fromtextfileR t addfieldt TestMRecordsc B s§ e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s! Base test class for MaskedArrays.c O s! t i | | | Ž | i ƒ d S( N( t TestCaset __init__t setup( t selft argst kwds( ( sB /usr/lib64/python2.6/site-packages/numpy/ma/tests/test_mrecords.pyR s c C s d d d d d g } d d d d d g } d d d d d g } d t f d t f d g } d d d d d g } t i t | | | ƒ d | d | ƒ| _ d S( s Generic setupi i i i i gš™™™™™ñ?gš™™™™™@gffffff @gš™™™™™@g @t onet twot threet fourt fivet at bt cs |S8i t maskt dtypeN( R s |S8( t intt floatt mat arrayt zipt base( R t ilistt flistt slistt ddtypeR ( ( sB /usr/lib64/python2.6/site-packages/numpy/ma/tests/test_mrecords.pyR s c C s´ | i } | i t ƒ } t | i | i ƒ t | i | i ƒ t | i t ƒ p t ‚ t | i | i i t ƒ ƒ x# d D] } t | | | | ƒ q{ Wt | i t ƒ | ƒ d S( s Test creation by viewR R R N( R R R ( R t viewR t assert_equalt recordmaskt assert_equal_recordst _maskt isinstancet _dataR t AssertionError( R R t mbaset field( ( sB /usr/lib64/python2.6/site-packages/numpy/ma/tests/test_mrecords.pyt test_byview) s c C sh | i i ƒ } | i t ƒ } x= d D]5 } t t | | ƒ | | ƒ t | | | | ƒ q% W| d } t | t ƒ p t ‚ t | i | i ƒ t | i ƒ d ƒ t | i t ƒ t | i i ƒ t t t f ƒ t | d | d d ƒ | d } t | t ƒ p t ‚ t | i | i ƒ t | i ƒ d ƒ t | i t ƒ t | i i ƒ t t t f ƒ t | d | d d ƒ | d t j p t ‚ | d } t | t ƒ p t ‚ t | i | i ƒ t | i d d g ƒ t | i t i t t t f t t t f g d | i i ƒƒ t | | d i t ƒ ƒ x, d D]$ } t t | | ƒ | d | ƒ q<Wd S( s Tests fields retrievalR R R i i gš™™™™™ñ?R iÿÿÿÿi R N( R R R ( i gš™™™™™ñ?s one( NNN( R R R ( R t copyR% R R&