
Ic           @   sT  y d  d l  TWn- e k
 r= d  d l m Z e d   n Xd  d l Te d d d g d d d	 g d
 d d g d d d g g d  Z e d d d g d d d g d d d g d d d g g d  Z e   Z	 e	 j
 e e  e	 j   e	 j   Z e	 j   \ Z Z e e e  e Z e	 j   Z d   Z e e  GHHe e  GHHd e GHd S(    i(   t   *(   t   MissingExternalDependencyErrors5   Install NumPy if you want to use Bio.SVDSuperimposer.g33333I@gffffffg)\I@g333333I@gGzg33333SI@gףp=
WI@g{GzgQI@g\(I@g{GzglJ@t   fgfffffI@gQgQEG@gQI@gGzg
ףp=G@gGz.J@g333333gp=
H@g{GZJ@gzGgq=
ףH@c      
   C   sP   d d j  g  |  D]4 } d d j  g  | D] } d | ^ q&  d ^ q  d S(   s  Simple string to display a floating point matrix

    This should give the same output on multiple systems.  This is
    needed because a simple "print matrix" uses scientific notation
    which varies between platforms.

    Only 4 decimal places are used to avoid false test failures due
    to slight differences in the calculation (e.g. due to different
    versions of the underlying libraries or the compilation options
    they used).
    t   [s   
 t    s   % 1.4ft   ](   t   join(   t   matrixt   rowt   val(    (    s   test_SVDSuperimposer.pyt   simple_matrix_print,   s    s   %.2fN(   t   numpyt   ImportErrort   BioR   t   Bio.SVDSuperimposert   arrayt   xt   yt   SVDSuperimposert   supt   sett   runt   get_rmst   rmst
   get_rotrant   rott   trant   dott   y_on_x1t   get_transformedt   y_on_x2R
   (    (    (    s   test_SVDSuperimposer.pyt   <module>   s6   
	
	