ó
ÊµÂSc           @   så  d  Z  d d l Z d d l m Z d d l Z e j j d ƒ re d d l Z e j d d d ƒ[ n  [ d d l	 Z
 d e f d	 „  ƒ  YZ d g Z d
 „  Z d d l Z
 e e
 j ƒ d d l Z
 e e
 j ƒ d d l Z
 e e
 j ƒ d d l Z
 e e
 j ƒ d d l Z
 e e
 j ƒ d d l Z
 e e
 j ƒ d d l Z
 e e
 j ƒ d d l	 Z
 e e
 j ƒ d d l Z
 e e
 j ƒ d d l  Z
 e e
 j! ƒ d d l" Z
 e e
 j# ƒ d d l$ Z
 e e
 j% ƒ d d l& Z
 e e
 j' ƒ d S(   s    patsy is a Python package for describing statistical models and building
design matrices. It is closely inspired by the 'formula' mini-language used in
R and S.iÿÿÿÿN(   t   __version__t   PATSY_FORCE_NO_WARNINGSt   errort   modules   ^patsyt
   PatsyErrorc           B   s,   e  Z d  Z d d „ Z d „  Z d „  Z RS(   sç  This is the main error type raised by Patsy functions.

    In addition to the usual Python exception features, you can pass a second
    argument to this function specifying the origin of the error; this is
    included in any error message, and used to help the user locate errors
    arising from malformed formulas. This second argument should be an
    :class:`Origin` object, or else an arbitrary object with a ``.origin``
    attribute. (If it is neither of these things, then it will simply be
    ignored.)

    For ordinary display to the user with default formatting, use
    ``str(exc)``. If you want to do something cleverer, you can use the
    ``.message`` and ``.origin`` attributes directly. (The latter may be
    None.)
    c         C   s3   t  j |  | ƒ | |  _ d  |  _ |  j | ƒ d  S(   N(   t	   Exceptiont   __init__t   messaget   Nonet   origint
   set_origin(   t   selfR   R	   (    (    s-   lib/python2.7/site-packages/patsy/__init__.pyR   '   s    		c         C   s:   |  j  d  k r |  j Sd |  j |  j  j d d ƒ f Sd  S(   Ns   %s
%st   indenti   (   R	   R   R   t   caretize(   R   (    (    s-   lib/python2.7/site-packages/patsy/__init__.pyt   __str__-   s    c         C   sX   |  j  d  k rT t | d ƒ r* | j  } n  t | t j  j ƒ sH d  } n  | |  _  n  d  S(   NR	   (   R	   R   t   hasattrt
   isinstancet   patsyt   Origin(   R   R	   (    (    s-   lib/python2.7/site-packages/patsy/__init__.pyR
   4   s    	N(   t   __name__t
   __module__t   __doc__R   R   R   R
   (    (    (    s-   lib/python2.7/site-packages/patsy/__init__.pyR      s   	c         C   s>   t  j |  j  ƒ x' |  j  D] } t |  | ƒ t ƒ  | <q Wd  S(   N(   t   __all__t   extendt   getattrt   globals(   t   modt   var(    (    s-   lib/python2.7/site-packages/patsy/__init__.pyt	   _reexportF   s    ((   R   t   syst   patsy.versionR    t   ost   environt   gett   warningst   filterwarningst   patsy.originR   R   R   R   R   t   patsy.highlevelt	   highlevelt   patsy.buildt   buildt   patsy.constraintt
   constraintt   patsy.contrastst	   contrastst
   patsy.desct   desct   patsy.design_infot   design_infot
   patsy.evalt   evalR	   t   patsy.statet   statet   patsy.user_utilt	   user_utilt   patsy.missingt   missingt   patsy.splinest   splinest   patsy.mgcv_cubic_splinest   mgcv_cubic_splines(    (    (    s-   lib/python2.7/site-packages/patsy/__init__.pyt   <module>   sL   )		